* pre-include winsock2.h
authorMichael Wallner <mike@php.net>
Wed, 9 Mar 2005 16:23:12 +0000 (16:23 +0000)
committerMichael Wallner <mike@php.net>
Wed, 9 Mar 2005 16:23:12 +0000 (16:23 +0000)
php_http.h
php_http_curl_api.h

index 1234f9ba273418c9c5c1ecd699bf4c7ecb464e2c..e6191c820025001ba956a22e02e880e3ce06c889 100644 (file)
@@ -42,6 +42,11 @@ typedef struct {
 
 #ifdef HTTP_HAVE_CURL
 
+#ifdef PHP_WIN32
+#      define _WINSOCKAPI_
+#      include <winsock2.h>
+#endif
+
 #include <curl/curl.h>
 
 typedef struct {
index 98493cacf916bab5b9ebeb96eb635ae6e1fc1774..ca0f29202017b612f0623243bf46f42ccb2a5293 100644 (file)
 #ifndef PHP_HTTP_CURL_API_H
 #define PHP_HTTP_CURL_API_H
 
+#ifdef PHP_WIN32
+#      define _WINSOCKAPI_
+#      include <winsock2.h>
+#endif
+
 #include <curl/curl.h>
 
 #define http_get(u, o, i, d, l) _http_get_ex(NULL, (u), (o), (i), (d), (l) TSRMLS_CC)