summaryrefslogtreecommitdiffstats
path: root/contrib/libs/curl/lib/setup-win32.h
diff options
context:
space:
mode:
authorrobot-contrib <[email protected]>2022-12-02 16:18:16 +0300
committerrobot-contrib <[email protected]>2022-12-02 16:18:16 +0300
commit22a73deb46c33ab8539b522286f0fb9b3364f856 (patch)
treeaf3cf69e9e6ebc887a5add5491b2fcebbfdff06a /contrib/libs/curl/lib/setup-win32.h
parent2e7d246d83a0077f08e6fed36594fc2087949502 (diff)
Update contrib/libs/curl to 7.86.0
Diffstat (limited to 'contrib/libs/curl/lib/setup-win32.h')
-rw-r--r--contrib/libs/curl/lib/setup-win32.h15
1 files changed, 13 insertions, 2 deletions
diff --git a/contrib/libs/curl/lib/setup-win32.h b/contrib/libs/curl/lib/setup-win32.h
index c16928db908..bc5f8efc3c6 100644
--- a/contrib/libs/curl/lib/setup-win32.h
+++ b/contrib/libs/curl/lib/setup-win32.h
@@ -37,10 +37,21 @@
#ifdef HAVE_WINDOWS_H
# if defined(UNICODE) && !defined(_UNICODE)
-# define _UNICODE
+# error "UNICODE is defined but _UNICODE is not defined"
# endif
# if defined(_UNICODE) && !defined(UNICODE)
-# define UNICODE
+# error "_UNICODE is defined but UNICODE is not defined"
+# endif
+/*
+ * Don't include unneeded stuff in Windows headers to avoid compiler
+ * warnings and macro clashes.
+ * Make sure to define this macro before including any Windows headers.
+ */
+# ifndef WIN32_LEAN_AND_MEAN
+# define WIN32_LEAN_AND_MEAN
+# endif
+# ifndef NOGDI
+# define NOGDI
# endif
# include <winerror.h>
# include <windows.h>