X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=php_http_api.h;h=fbfea28a02b85593d2832210c61933ee7e2ddaaf;hb=729594cae203b09419d195ec0dabde0430c9f1cd;hp=72ebf4dc49ebd8cf9113dd71b08bc08d25c7e39a;hpb=c0d96fe2c0d156412bcb22bf5b9f5e9ed0046c9c;p=m6w6%2Fext-http diff --git a/php_http_api.h b/php_http_api.h index 72ebf4d..fbfea28 100644 --- a/php_http_api.h +++ b/php_http_api.h @@ -17,7 +17,9 @@ #include "config.h" #endif +#ifndef PHP_WIN32 #include +#endif #include #include @@ -27,16 +29,12 @@ #include -#if defined(PHP_WIN32) -# if defined(PHP_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 +#ifdef PHP_WIN32 +# define PHP_HTTP_API __declspec(dllexport) +#elif defined(__GNUC__) && __GNUC__ >= 4 +# define PHP_HTTP_API __attribute__ ((visibility("default"))) #else -# define PHP_HTTP_API +# define PHP_HTTP_API #endif /* make functions that return SUCCESS|FAILURE more obvious */