summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMarcel Raad <Marcel.Raad@teamviewer.com>2018-10-08 11:33:15 +0200
committerMarcel Raad <Marcel.Raad@teamviewer.com>2018-10-09 08:33:53 +0200
commit673795f8146a48764a55c5ebd93761f938d114ef (patch)
treec7724b722dc23c71cd164b0c8d409206d5a14ce0 /lib
parent940e1c1e743e376ddd47f2e2bd963c82d8dc5f59 (diff)
downloadcurl-673795f8146a48764a55c5ebd93761f938d114ef.tar.gz
curl_setup: define NOGDI on Windows
This avoids an ERROR macro clash between <wingdi.h> and <arpa/tftp.h> on MinGW. Closes https://github.com/curl/curl/pull/3113
Diffstat (limited to 'lib')
-rw-r--r--lib/curl_setup.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/curl_setup.h b/lib/curl_setup.h
index 6513d30f1..b84501556 100644
--- a/lib/curl_setup.h
+++ b/lib/curl_setup.h
@@ -44,6 +44,9 @@
# ifndef WIN32_LEAN_AND_MEAN
# define WIN32_LEAN_AND_MEAN
# endif
+# ifndef NOGDI
+# define NOGDI
+# endif
#endif
/*