X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=php_http_api.h;h=ca1e2f7b43340d6308c7a1bd7460e72f625e79a1;hp=72ebf4dc49ebd8cf9113dd71b08bc08d25c7e39a;hb=b9b940d68c0569107bf1afefeca2a1e5f1efab04;hpb=c0d96fe2c0d156412bcb22bf5b9f5e9ed0046c9c diff --git a/php_http_api.h b/php_http_api.h index 72ebf4d..ca1e2f7 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 */ @@ -76,10 +74,10 @@ typedef int STATUS; #include "php_http_strlist.h" #include "php_http_misc.h" #include "php_http_resource_factory.h" +#include "php_http_options.h" #include "php_http.h" #include "php_http_cookie.h" -#include "php_http_curl.h" #include "php_http_encoding.h" #include "php_http_env.h" #include "php_http_env_request.h" @@ -101,6 +99,7 @@ typedef int STATUS; #include "php_http_querystring.h" #include "php_http_client_interface.h" #include "php_http_client.h" +#include "php_http_curl.h" #include "php_http_client_request.h" #include "php_http_client_response.h" #include "php_http_curl_client.h"