X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=php_http_api.h;h=42d34fca4bfc611f9c72dc942cfacbc1d070fcdc;hp=62530b8edac5471e1c15f46335a9633d420bb9d1;hb=47be714b40e14b6b5cdc2f35a7994efd13c2076e;hpb=9886ab46dbb299c9d6cfef9d8a0258d91b90a8e6 diff --git a/php_http_api.h b/php_http_api.h index 62530b8..42d34fc 100644 --- a/php_http_api.h +++ b/php_http_api.h @@ -30,21 +30,20 @@ #include #include +#include + #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 @@ -95,7 +94,7 @@ typedef int STATUS; #include "php_http_exception.h" #include "php_http_filter.h" #include "php_http_header_parser.h" -#include "php_http_headers.h" +#include "php_http_header.h" #include "php_http_message_body.h" #include "php_http_message_parser.h" #include "php_http_negotiate.h"