diff --git a/lib/content_encoding.c b/lib/content_encoding.c index 626bb8ec95..3d061375c5 100644 --- a/lib/content_encoding.c +++ b/lib/content_encoding.c @@ -25,6 +25,19 @@ #include "urldata.h" #include #include + +#ifdef HAVE_ZLIB_H +#include +#ifdef __SYMBIAN32__ +/* zlib pollutes the namespace with this definition */ +#undef WIN32 +#endif +#endif + +#ifdef HAVE_BROTLI +#include +#endif + #include "sendf.h" #include "http.h" #include "content_encoding.h" diff --git a/lib/urldata.h b/lib/urldata.h index 7dfb26b6d4..94f6922238 100644 --- a/lib/urldata.h +++ b/lib/urldata.h @@ -88,18 +88,6 @@ #include "timeval.h" -#ifdef HAVE_ZLIB_H -#include /* for content-encoding */ -#ifdef __SYMBIAN32__ -/* zlib pollutes the namespace with this definition */ -#undef WIN32 -#endif -#endif - -#ifdef HAVE_BROTLI -#include -#endif - #include #include "http_chunks.h" /* for the structs and enum stuff */ diff --git a/lib/version.c b/lib/version.c index 66c761e34c..79cc0bba47 100644 --- a/lib/version.c +++ b/lib/version.c @@ -64,6 +64,18 @@ #define CURL_LIBSSH2_VERSION LIBSSH2_VERSION #endif +#ifdef HAVE_ZLIB_H +#include +#ifdef __SYMBIAN32__ +/* zlib pollutes the namespace with this definition */ +#undef WIN32 +#endif +#endif + +#ifdef HAVE_BROTLI +#include +#endif + void Curl_version_init(void); /* For thread safety purposes this function is called by global_init so that