From d226b8581f49234f6769a123173b268aa9b2bb60 Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Wed, 9 Mar 2005 16:23:12 +0000 Subject: [PATCH] * pre-include winsock2.h --- php_http.h | 5 +++++ php_http_curl_api.h | 5 +++++ 2 files changed, 10 insertions(+) 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) -- 2.30.2