X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=php_http.h;h=1801943a64d2488941343b6cb355c85d1e51bb38;hp=2f0eadedf7d4247a22be9a8692deb6a3d02da175;hb=edc84b40eb2c5be04492fa98fec5833a030782eb;hpb=e72c7760ba1b1502655567f2a57be034a4f7c11d diff --git a/php_http.h b/php_http.h index 2f0eade..1801943 100644 --- a/php_http.h +++ b/php_http.h @@ -15,17 +15,41 @@ #ifndef PHP_EXT_HTTP_H #define PHP_EXT_HTTP_H -#define HTTP_PEXT_VERSION "0.18.1" +#define PHP_EXT_HTTP_VERSION "0.19.0" -/* make compile on Win32 */ -#ifdef HTTP_HAVE_CURL +#include "php.h" +#include "php_http_std_defs.h" +#include "phpstr/phpstr.h" +#include "missing.h" + + +#ifdef HTTP_WANT_NETDB +# ifdef PHP_WIN32 +# include +# elif defined(HAVE_NETDB_H) +# include +# endif +#endif + +#if defined(HTTP_WANT_CURL) && defined(HTTP_HAVE_CURL) # ifdef PHP_WIN32 # include # endif # include #endif -#include "phpstr/phpstr.h" +#if defined(HTTP_WANT_MAGIC) && defined(HTTP_HAVE_MAGIC) +# if defined(PHP_WIN32) && !defined(USE_MAGIC_DLL) && !defined(USE_MAGIC_STATIC) +# define USE_MAGIC_STATIC +# endif +# include +#endif + +#if defined(HTTP_WANT_ZLIB) && defined(HTTP_HAVE_ZLIB) +# include +#endif + +#include extern zend_module_entry http_module_entry; #define phpext_http_ptr &http_module_entry