X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=php_http_curl_api.h;h=ca0f29202017b612f0623243bf46f42ccb2a5293;hp=3bcd8abed3182443c51be5282d4ad29f19f32ffc;hb=d226b8581f49234f6769a123173b268aa9b2bb60;hpb=6dd728f3faa5dcedf81f3f9a6cfe2e41993efc0b diff --git a/php_http_curl_api.h b/php_http_curl_api.h index 3bcd8ab..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) @@ -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 */ +