]> granicus.if.org Git - php/commitdiff
Remove unused OCI8 macros
authorChristopher Jones <sixd@php.net>
Tue, 16 Aug 2016 06:58:20 +0000 (16:58 +1000)
committerChristopher Jones <sixd@php.net>
Tue, 16 Aug 2016 06:58:20 +0000 (16:58 +1000)
ext/oci8/oci8.c

index 488b3b42aaba817f87948a31e779abbb408f4217..0527b558474b9602dac1cbae9d6544f6d1ee3f7e 100644 (file)
 #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);