#ifndef PHP_EXT_HTTP_H
#define PHP_EXT_HTTP_H
-#define PHP_EXT_HTTP_VERSION "0.6.0"
+#define PHP_EXT_HTTP_VERSION "0.7.0-dev"
/* make compile on Win32 */
#include "php_streams.h"
#ifdef HTTP_HAVE_CURL
+#ifdef PHP_WIN32
+# define _WINSOCKAPI_
+# include <winsock2.h>
+#endif
+
#include <curl/curl.h>
typedef struct {
HTTP_POST,
} http_request_method;
-#endif
+#endif /* HTTP_HAVE _CURL */
PHP_METHOD(HTTPi, date);
PHP_METHOD(HTTPi, absoluteURI);
PHP_METHOD(HTTPi, head);
PHP_METHOD(HTTPi, postData);
PHP_METHOD(HTTPi, postArray);
-#endif
+#endif /* HTTP_HAVE_CURL */
PHP_METHOD(HTTPi, authBasic);
PHP_METHOD(HTTPi, authBasicCallback);
PHP_FUNCTION(http_head);
PHP_FUNCTION(http_post_data);
PHP_FUNCTION(http_post_array);
-#endif
+#endif /* HTTP_HAVE_CURL */
PHP_FUNCTION(http_auth_basic);
PHP_FUNCTION(http_auth_basic_cb);
#ifndef ZEND_ENGINE_2
PHP_FUNCTION(http_build_query);
-#endif
+#endif /* ZEND_ENGINE_2 */
PHP_FUNCTION(ob_httpetaghandler);
PHP_MINIT_FUNCTION(http);
size_t size;
} curlbuf;
zend_llist to_free;
-#endif
+#endif /* HTTP_HAVE_CURL */
ZEND_END_MODULE_GLOBALS(http)
#endif /* PHP_HTTP_H */