Index: php_http.h =================================================================== RCS file: /repository/pecl/http/php_http.h,v retrieving revision 1.149 diff -u -p -d -r1.149 php_http.h --- php_http.h 8 Jun 2006 22:10:32 -0000 1.149 +++ php_http.h 11 Jun 2006 12:46:33 -0000 @@ -15,7 +15,7 @@ #ifndef PHP_EXT_HTTP_H #define PHP_EXT_HTTP_H -#define PHP_EXT_HTTP_VERSION "1.0.0" +#define PHP_EXT_HTTP_VERSION "1.0.1dev" #ifdef HAVE_CONFIG_H # include "config.h" @@ -144,7 +144,11 @@ ZEND_EXTERN_MODULE_GLOBALS(http); # define HTTP_G (&http_globals) #endif -#define HTTP_HAVE_EXT(EXT) ((defined(HAVE_##EXT) || defined(HAVE_PHP_##EXT) || defined(HAVE_##EXT##_EXT)) && (HTTP_SHARED_DEPS || !defined(COMPILE_DL_##EXT))) +#if defined(__GNUC__) && (__GNUC__ < 3) +# define HTTP_HAVE_EXT(EXT) 0 +#else +# define HTTP_HAVE_EXT(EXT) ((defined(HAVE_##EXT) || defined(HAVE_PHP_##EXT) || defined(HAVE_##EXT##_EXT)) && (HTTP_SHARED_DEPS || !defined(COMPILE_DL_##EXT))) +#endif PHP_FUNCTION(http_test); PHP_FUNCTION(http_date);