X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=php_http.h;h=08b2a4db4009ae7b908fa5bf4552c48e13ee8420;hp=f3574d322245aacf9252fb31cfcd58fd984365de;hb=46fc12676a53668d55fe6d02d44210e2eaf4b6b5;hpb=ebf03950ffaea849b931adf83b6c20ac9fb7ef33 diff --git a/php_http.h b/php_http.h index f3574d3..08b2a4d 100644 --- a/php_http.h +++ b/php_http.h @@ -144,7 +144,7 @@ ZEND_EXTERN_MODULE_GLOBALS(http); # define HTTP_G (&http_globals) #endif -#define HTTP_SHARED_EXT(EXT) (COMPILE_DL_##EXT && !HTTP_SHARED_DEPS) +#define HTTP_HAVE_EXT(EXT) ((defined(HAVE_##EXT) || defined(HAVE_PHP_##EXT)) && (HTTP_SHARED_DEPS || !defined(COMPILE_DL_##EXT))) PHP_FUNCTION(http_test); PHP_FUNCTION(http_date);