From 51c1b64fa9aa7e7f43611c388350365e0bbff892 Mon Sep 17 00:00:00 2001 From: Christopher Jones Date: Tue, 16 Aug 2016 16:58:20 +1000 Subject: [PATCH] Remove unused OCI8 macros --- ext/oci8/oci8.c | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/ext/oci8/oci8.c b/ext/oci8/oci8.c index 488b3b42aa..0527b55847 100644 --- a/ext/oci8/oci8.c +++ b/ext/oci8/oci8.c @@ -49,20 +49,6 @@ #include "php_oci8_int.h" #include "zend_hash.h" -#if defined(__PTRDIFF_TYPE__) -# define OCI8_INT_TO_PTR(I) ((void*)(__PTRDIFF_TYPE__)(I)) -# define OCI8_PTR_TO_INT(P) ((int)(__PTRDIFF_TYPE__)(P)) -#elif !defined(__GNUC__) -#define OCI8_INT_TO_PTR(I) ((void*)&((char*)0)[I]) -#define OCI8_PTR_TO_INT(P) ((int)(((char*)P)-(char*)0)) -#elif defined(HAVE_STDINT_H) -#define OCI8_INT_TO_PTR(I) ((void*)(intptr_t)(I)) -#define OCI8_PTR_TO_INT(P) ((int)(intptr_t)(P)) -#else -#define OCI8_INT_TO_PTR(I) ((void*)(I)) -#define OCI8_PTR_TO_INT(P) ((int)(P)) -#endif - ZEND_DECLARE_MODULE_GLOBALS(oci) static PHP_GINIT_FUNCTION(oci); static PHP_GSHUTDOWN_FUNCTION(oci); -- 2.40.0