From: Michael Wallner Date: Wed, 9 Mar 2005 16:23:12 +0000 (+0000) Subject: * pre-include winsock2.h X-Git-Tag: RELEASE_0_7_0~40 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=d226b8581f49234f6769a123173b268aa9b2bb60;p=m6w6%2Fext-http * pre-include winsock2.h --- diff --git a/php_http.h b/php_http.h index 1234f9b..e6191c8 100644 --- a/php_http.h +++ b/php_http.h @@ -42,6 +42,11 @@ typedef struct { #ifdef HTTP_HAVE_CURL +#ifdef PHP_WIN32 +# define _WINSOCKAPI_ +# include +#endif + #include typedef struct { diff --git a/php_http_curl_api.h b/php_http_curl_api.h index 98493ca..ca0f292 100644 --- a/php_http_curl_api.h +++ b/php_http_curl_api.h @@ -18,6 +18,11 @@ #ifndef PHP_HTTP_CURL_API_H #define PHP_HTTP_CURL_API_H +#ifdef PHP_WIN32 +# define _WINSOCKAPI_ +# include +#endif + #include #define http_get(u, o, i, d, l) _http_get_ex(NULL, (u), (o), (i), (d), (l) TSRMLS_CC)