* prevent inclusion of winsock.h
authorMichael Wallner <mike@php.net>
Thu, 24 Feb 2005 17:52:42 +0000 (17:52 +0000)
committerMichael Wallner <mike@php.net>
Thu, 24 Feb 2005 17:52:42 +0000 (17:52 +0000)
http_curl_api.c
http_functions.c
http_methods.c

index 7c5c8b34d182490e4b2592b88bd6b5db9f4f6306..dde417aa899876c0b2288652b310e2f20fc040de 100644 (file)
@@ -702,7 +702,6 @@ PHP_HTTP_API STATUS _http_post_curldata_ex(CURL *ch, const char *URL,
        return SUCCESS;}
 /* }}} */
 
-
 /*
  * Local variables:
  * tab-width: 4
index 8b79f42497beffd47140e6b272bbb9fb291c0169..6e7f2361f0d9308436332e3111e1faeeeadfd77d 100644 (file)
@@ -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
index 2f7a429fc9db51556245b7fdd7fba41d6846b3c4..57a7c2b579d31e53fa6ce37848f2f81d3f7d6a9c 100644 (file)
@@ -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