* move includes around
authorMichael Wallner <mike@php.net>
Wed, 9 Feb 2005 07:19:29 +0000 (07:19 +0000)
committerMichael Wallner <mike@php.net>
Wed, 9 Feb 2005 07:19:29 +0000 (07:19 +0000)
http.c
http_api.c

diff --git a/http.c b/http.c
index 2142eab9a9068bebb6c2f06d8e1fbfe4ce395b47..3906c7e599c3e8d8bfd628d8c256d4a6855dcd0f 100644 (file)
--- a/http.c
+++ b/http.c
 #include "config.h"
 #endif
 
+#if defined(HAVE_CURL) && HAVE_CURL
+#      ifdef PHP_WIN32
+#      include <winsock2.h>
+#      include <sys/types.h>
+#      endif
+#include <curl/curl.h>
+#endif
+
 #include "php.h"
 #include "snprintf.h"
 #include "ext/standard/info.h"
 #include "php_http.h"
 #include "php_http_api.h"
 
-#if defined(HAVE_CURL) && HAVE_CURL
-#      ifdef PHP_WIN32
-#      include <winsock2.h>
-#      include <sys/types.h>
-#      endif
-#include <curl/curl.h>
-#endif
-
 ZEND_DECLARE_MODULE_GLOBALS(http)
 
 #ifdef COMPILE_DL_HTTP
index ea11f1099a6751b3d766b8b730d0931b48cc1139..adef9a2f8afad8c9370db2dcd8b8c11a0a87d41d 100644 (file)
 #include "config.h"
 #endif
 
+#include <ctype.h>
+
+#if defined(HAVE_CURL) && HAVE_CURL
+#      ifdef PHP_WIN32
+#      include <winsock2.h>
+#      include <sys/types.h>
+#      endif
+#include <curl/curl.h>
+#include <curl/easy.h>
+#endif
+
 #include "php.h"
 #include "php_version.h"
 #include "php_streams.h"
 #include "php_http.h"
 #include "php_http_api.h"
 
-#include <ctype.h>
-
-#if defined(HAVE_CURL) && HAVE_CURL
-#      ifdef PHP_WIN32
-#      include <winsock2.h>
-#      include <sys/types.h>
-#      endif
-#include <curl/curl.h>
-#include <curl/easy.h>
-#endif
-
 ZEND_DECLARE_MODULE_GLOBALS(http)
 
 /* {{{ day/month names */