projects
/
m6w6
/
ext-http
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
* pre-include winsock2.h
[m6w6/ext-http]
/
php_http_curl_api.h
diff --git
a/php_http_curl_api.h
b/php_http_curl_api.h
index 3bcd8abed3182443c51be5282d4ad29f19f32ffc..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
#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)
#include <curl/curl.h>
#define http_get(u, o, i, d, l) _http_get_ex(NULL, (u), (o), (i), (d), (l) TSRMLS_CC)
@@
-50,3
+55,4
@@
PHP_HTTP_API STATUS _http_post_curldata_ex(CURL *ch, const char *URL, struct cur
* vim600: noet sw=4 ts=4 fdm=marker
* vim<600: noet sw=4 ts=4
*/
* vim600: noet sw=4 ts=4 fdm=marker
* vim<600: noet sw=4 ts=4
*/
+