- added custom error function which is able to throw exceptions
[m6w6/ext-http] / php_http_curl_api.h
index 3bcd8abed3182443c51be5282d4ad29f19f32ffc..586259e41ed885af4f7902f8da594d614125c94d 100644 (file)
 #ifndef PHP_HTTP_CURL_API_H
 #define PHP_HTTP_CURL_API_H
 
+#include "php_http_std_defs.h"
+
+#ifdef PHP_WIN32
+#      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)
@@ -50,3 +56,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
  */
+