From: Michael Wallner Date: Wed, 9 Feb 2005 07:19:29 +0000 (+0000) Subject: * move includes around X-Git-Tag: RELEASE_0_3_0~13 X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=commitdiff_plain;h=5f04760d51e4e25b55d12a4698b361e1e93f91a9 * move includes around --- diff --git a/http.c b/http.c index 2142eab..3906c7e 100644 --- a/http.c +++ b/http.c @@ -19,6 +19,14 @@ #include "config.h" #endif +#if defined(HAVE_CURL) && HAVE_CURL +# ifdef PHP_WIN32 +# include +# include +# endif +#include +#endif + #include "php.h" #include "snprintf.h" #include "ext/standard/info.h" @@ -29,14 +37,6 @@ #include "php_http.h" #include "php_http_api.h" -#if defined(HAVE_CURL) && HAVE_CURL -# ifdef PHP_WIN32 -# include -# include -# endif -#include -#endif - ZEND_DECLARE_MODULE_GLOBALS(http) #ifdef COMPILE_DL_HTTP diff --git a/http_api.c b/http_api.c index ea11f10..adef9a2 100644 --- a/http_api.c +++ b/http_api.c @@ -19,6 +19,17 @@ #include "config.h" #endif +#include + +#if defined(HAVE_CURL) && HAVE_CURL +# ifdef PHP_WIN32 +# include +# include +# endif +#include +#include +#endif + #include "php.h" #include "php_version.h" #include "php_streams.h" @@ -42,17 +53,6 @@ #include "php_http.h" #include "php_http_api.h" -#include - -#if defined(HAVE_CURL) && HAVE_CURL -# ifdef PHP_WIN32 -# include -# include -# endif -#include -#include -#endif - ZEND_DECLARE_MODULE_GLOBALS(http) /* {{{ day/month names */