X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=php_http.h;h=ea2c2559e0262b81f666cb6f131567ac84d53996;hp=e9d6616bbd4ceae848f2a42918e86336c0a8f3e6;hb=2d5d8aa343778897c7eedb25464a2cb0a789d748;hpb=161b5ccf180c69c7b1872c147d5bda6c0328b178 diff --git a/php_http.h b/php_http.h index e9d6616..ea2c255 100644 --- a/php_http.h +++ b/php_http.h @@ -42,6 +42,10 @@ typedef struct { #ifdef HTTP_HAVE_CURL +#ifdef PHP_WIN32 +# include +#endif + #include typedef struct { @@ -55,7 +59,7 @@ typedef enum { HTTP_POST, } http_request_method; -#endif +#endif /* HTTP_HAVE _CURL */ PHP_METHOD(HTTPi, date); PHP_METHOD(HTTPi, absoluteURI); @@ -79,7 +83,7 @@ PHP_METHOD(HTTPi, get); PHP_METHOD(HTTPi, head); PHP_METHOD(HTTPi, postData); PHP_METHOD(HTTPi, postArray); -#endif +#endif /* HTTP_HAVE_CURL */ PHP_METHOD(HTTPi, authBasic); PHP_METHOD(HTTPi, authBasicCallback); @@ -166,12 +170,12 @@ PHP_FUNCTION(http_get); PHP_FUNCTION(http_head); PHP_FUNCTION(http_post_data); PHP_FUNCTION(http_post_array); -#endif +#endif /* HTTP_HAVE_CURL */ PHP_FUNCTION(http_auth_basic); PHP_FUNCTION(http_auth_basic_cb); #ifndef ZEND_ENGINE_2 PHP_FUNCTION(http_build_query); -#endif +#endif /* ZEND_ENGINE_2 */ PHP_FUNCTION(ob_httpetaghandler); PHP_MINIT_FUNCTION(http); @@ -196,7 +200,7 @@ ZEND_BEGIN_MODULE_GLOBALS(http) size_t size; } curlbuf; zend_llist to_free; -#endif +#endif /* HTTP_HAVE_CURL */ ZEND_END_MODULE_GLOBALS(http) #endif /* PHP_HTTP_H */