summaryrefslogtreecommitdiff
path: root/lib/config-win32.h
diff options
context:
space:
mode:
authorJay Satiro <raysatiro@yahoo.com>2022-06-22 03:35:19 -0400
committerJay Satiro <raysatiro@yahoo.com>2022-06-23 03:34:51 -0400
commit37337175098a324f3ffb9f158fbac6ae84bb204f (patch)
tree8a6ef383c9c5d10d1ee1a383f4a6b5733d6809b2 /lib/config-win32.h
parent70adb81c6f131c1c0c06e674757bebb20a0639a7 (diff)
downloadcurl-37337175098a324f3ffb9f158fbac6ae84bb204f.tar.gz
curl_setup: include _mingw.h
Prior to this change _mingw.h needed to be included in each unit before evaluating __MINGW{32,64}_xxx_VERSION macros since it defines them. It is included only in some mingw headers (eg stdio.h) and not others (eg windows.h) so it's better to explicitly include it once. Closes https://github.com/curl/curl/pull/9036
Diffstat (limited to 'lib/config-win32.h')
-rw-r--r--lib/config-win32.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/config-win32.h b/lib/config-win32.h
index 16cdd2410..932515667 100644
--- a/lib/config-win32.h
+++ b/lib/config-win32.h
@@ -453,9 +453,6 @@
/* mingw-w64, mingw using >= MSVCR80, and visual studio >= 2005 (MSVCR80)
all default to 64-bit time_t unless _USE_32BIT_TIME_T is defined */
-#ifdef __MINGW32__
-# include <_mingw.h>
-#endif
#if defined(__MINGW64_VERSION_MAJOR) || \
(defined(__MINGW32__) && (__MSVCRT_VERSION__ >= 0x0800)) || \
(defined(_MSC_VER) && (_MSC_VER >= 1400))