From 84db30e7a19ccab0526f20476dace985d05eca3d Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Thu, 9 Sep 2010 09:08:20 +0000 Subject: [PATCH] include headers where they're needed --- php_http.h | 39 +-------------------------------------- 1 file changed, 1 insertion(+), 38 deletions(-) diff --git a/php_http.h b/php_http.h index 67dcc35..4dc9532 100644 --- a/php_http.h +++ b/php_http.h @@ -38,19 +38,6 @@ # define PHP_HTTP_API #endif -#include
-#include
-#include
-#include
-#include -#include -#include -#include -#include -#include -#include -#include - /* make functions that return SUCCESS|FAILURE more obvious */ typedef int STATUS; @@ -59,13 +46,10 @@ typedef int STATUS; #if (defined(HAVE_ICONV) || defined(PHP_HTTP_HAVE_EXT_ICONV)) && (PHP_HTTP_SHARED_DEPS || !defined(COMPILE_DL_ICONV)) # define PHP_HTTP_HAVE_ICONV -# undef PHP_ATOM_INC -# include #endif #if (defined(HAVE_HASH_EXT) || defined(PHP_HTTP_HAVE_EXT_HASH)) && (PHP_HTTP_SHARED_DEPS || !defined(COMPILE_DL_HASH)) && defined(PHP_HTTP_HAVE_PHP_HASH_H) # define PHP_HTTP_HAVE_HASH -# include "php_hash.h" #endif #ifdef PHP_WIN32 @@ -81,33 +65,12 @@ typedef int STATUS; #endif #ifdef PHP_HTTP_HAVE_EVENT -# include +//# include #endif #include #define PHP_HTTP_CURL_VERSION(x, y, z) (LIBCURL_VERSION_NUM >= (((x)<<16) + ((y)<<8) + (z))) -#if defined(ZTS) && defined(PHP_HTTP_HAVE_SSL) -# ifdef PHP_WIN32 -# define PHP_HTTP_NEED_OPENSSL_TSL -# include -# else /* !PHP_WIN32 */ -# if defined(PHP_HTTP_HAVE_OPENSSL) -# define PHP_HTTP_NEED_OPENSSL_TSL -# include -# elif defined(PHP_HTTP_HAVE_GNUTLS) -# define PHP_HTTP_NEED_GNUTLS_TSL -# include -# else -# warning \ - "libcurl was compiled with SSL support, but configure could not determine which" \ - "library was used; thus no SSL crypto locking callbacks will be set, which may " \ - "cause random crashes on SSL requests" -# endif /* PHP_HTTP_HAVE_OPENSSL || PHP_HTTP_HAVE_GNUTLS */ -# endif /* PHP_WIN32 */ -#endif /* ZTS && PHP_HTTP_HAVE_SSL */ - -#include #include #define PHP_HTTP_IS_CTYPE(type, c) is##type((int) (unsigned char) (c)) #define PHP_HTTP_TO_CTYPE(type, c) to##type((int) (unsigned char) (c)) -- 2.30.2