From: Michael Wallner Date: Thu, 24 Feb 2005 17:52:42 +0000 (+0000) Subject: * prevent inclusion of winsock.h X-Git-Tag: RELEASE_0_6_0~16 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=e7ab97894056ebc5907326ccf6b8c76071883d6b;p=m6w6%2Fext-http * prevent inclusion of winsock.h --- diff --git a/http_curl_api.c b/http_curl_api.c index 7c5c8b3..dde417a 100644 --- a/http_curl_api.c +++ b/http_curl_api.c @@ -702,7 +702,6 @@ PHP_HTTP_API STATUS _http_post_curldata_ex(CURL *ch, const char *URL, return SUCCESS;} /* }}} */ - /* * Local variables: * tab-width: 4 diff --git a/http_functions.c b/http_functions.c index 8b79f42..6e7f236 100644 --- a/http_functions.c +++ b/http_functions.c @@ -15,6 +15,9 @@ /* $Id$ */ +#define _WINSOCKAPI_ +#define ZEND_INCLUDE_FULL_WINDOWS_HEADERS + #ifdef HAVE_CONFIG_H # include "config.h" #endif @@ -940,4 +943,4 @@ PHP_FUNCTION(http_auth_basic_cb) * End: * vim600: noet sw=4 ts=4 fdm=marker * vim<600: noet sw=4 ts=4 - */ + */ \ No newline at end of file diff --git a/http_methods.c b/http_methods.c index 2f7a429..57a7c2b 100644 --- a/http_methods.c +++ b/http_methods.c @@ -15,6 +15,9 @@ /* $Id$ */ +#define _WINSOCKAPI_ +#define ZEND_INCLUDE_FULL_WINDOWS_HEADERS + #ifdef HAVE_CONFIG_H # include "config.h" #endif @@ -1040,7 +1043,7 @@ PHP_METHOD(HTTPi_Request, send) status = http_post_array_ex(obj->ch, request_uri, Z_ARRVAL_P(post_data), Z_ARRVAL_P(opts), Z_ARRVAL_P(info), &response_data, &response_len); } else { - + /* * multipart post */ @@ -1140,4 +1143,4 @@ PHP_METHOD(HTTPi_Request, send) * End: * vim600: noet sw=4 ts=4 fdm=marker * vim<600: noet sw=4 ts=4 - */ + */ \ No newline at end of file