X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=php_http_std_defs.h;h=ab80130ae11494d39cc277741bde32f7bcb11cd2;hp=c9369b5b380fa36a1d1b7c995be9d9a2a03bd38f;hb=16ea91ddd08d15dd9b7206229fec6158f212adaf;hpb=c2b4f0332ead5425b183d2487ab5f25663f1009f diff --git a/php_http_std_defs.h b/php_http_std_defs.h index c9369b5..ab80130 100644 --- a/php_http_std_defs.h +++ b/php_http_std_defs.h @@ -18,8 +18,14 @@ #ifndef PHP_HTTP_STD_DEFS_H #define PHP_HTTP_STD_DEFS_H -#ifdef PHP_WIN32 -# define PHP_HTTP_API __declspec(dllexport) +#if defined(PHP_WIN32) +# if defined(HTTP_EXPORTS) +# define PHP_HTTP_API __declspec(dllexport) +# elif defined(COMPILE_DL_HTTP) +# define PHP_HTTP_API __declspec(dllimport) +# else +# define PHP_HTTP_API +# endif #else # define PHP_HTTP_API #endif @@ -149,7 +155,7 @@ typedef int STATUS; } /* }}} */ -#define HTTP_LONG_CONSTANT(name, const) REGISTER_LONG_CONSTANT(name, const, CONST_CS | CONST_PERSISTENT); +#define HTTP_LONG_CONSTANT(name, const) REGISTER_LONG_CONSTANT(name, const, CONST_CS | CONST_PERSISTENT) /* {{{ objects & properties */ #ifdef ZEND_ENGINE_2