X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=php_http_api.h;h=ec4a989d25fdb4b59825ac552e4048983f885d1b;hp=211c6eb9022f44e99603ad8c7ca43ac74b4255c6;hb=18750f34ec9a9b16ffd07f54346136ca0f72e9a8;hpb=0b83632b2b0a03eeca090f993259ccd95ab646fb diff --git a/php_http_api.h b/php_http_api.h index 211c6eb..ec4a989 100644 --- a/php_http_api.h +++ b/php_http_api.h @@ -34,14 +34,17 @@ #ifdef PHP_WIN32 # define PHP_HTTP_API __declspec(dllexport) #elif defined(__GNUC__) && __GNUC__ >= 4 -# define PHP_HTTP_API __attribute__ ((visibility("default"))) +# define PHP_HTTP_API extern __attribute__ ((visibility("default"))) #else -# define PHP_HTTP_API +# define PHP_HTTP_API extern #endif /* make functions that return SUCCESS|FAILURE more obvious */ typedef int STATUS; +/* inline doc */ +#define _RETURNS(type) + #if (defined(HAVE_ICONV) || defined(PHP_HTTP_HAVE_EXT_ICONV)) && (PHP_HTTP_SHARED_DEPS || !defined(COMPILE_DL_ICONV)) # define PHP_HTTP_HAVE_ICONV #endif