projects
/
m6w6
/
ext-http
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
|
github
raw
|
patch
| inline |
side by side
(parent:
9bfaa02
)
* pre-include winsock2.h
author
Michael Wallner
<mike@php.net>
Wed, 9 Mar 2005 16:23:12 +0000
(16:23 +0000)
committer
Michael Wallner
<mike@php.net>
Wed, 9 Mar 2005 16:23:12 +0000
(16:23 +0000)
php_http.h
patch
|
blob
|
history
php_http_curl_api.h
patch
|
blob
|
history
diff --git
a/php_http.h
b/php_http.h
index 1234f9ba273418c9c5c1ecd699bf4c7ecb464e2c..e6191c820025001ba956a22e02e880e3ce06c889 100644
(file)
--- a/
php_http.h
+++ b/
php_http.h
@@
-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 {
diff --git
a/php_http_curl_api.h
b/php_http_curl_api.h
index 98493cacf916bab5b9ebeb96eb635ae6e1fc1774..ca0f29202017b612f0623243bf46f42ccb2a5293 100644
(file)
--- 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 <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)