]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
Makefile.m32: stop forcing XP target with ipv6 enabled [ci skip]
authorViktor Szakats <commit@vsz.me>
Wed, 22 Jun 2022 00:06:48 +0000 (00:06 +0000)
committerViktor Szakats <commit@vsz.me>
Wed, 22 Jun 2022 00:06:48 +0000 (00:06 +0000)
Since this [1] commit in 2011, `_WIN32_WINNT` was set fixed to Windows
XP when the `-ipv6` option is selected. Maybe this was added to support
pre-XP Windows versions (?). These days libcurl builds fine for both XP
and post-XP versions with IPv6 support enabled. The relevance of pre-XP
version is also low by now. Other build methods also do not impose such
limitation for a similar configuration. So, drop this hard-wired
`_WIN32_WINNT` limit from `Makefile.m32`, thus building for the default
Windows version set by the compiler. This is Vista for recent MinGW
versions.

Old behaviour can be restored by setting this envvar:
export CURL_CFLAG_EXTRAS=-D_WIN32_WINNT=0x0501

[1] 98a61d8e2e8982786aaf3916cbbcac96838316e7

Closes #9035

docs/examples/Makefile.m32
lib/Makefile.m32
src/Makefile.m32

index 71369487a7924d051c569dd628732c45990bde22..15eaf82b3a8b794be74dd89f9c5083a1bcc2dfaa 100644 (file)
@@ -356,7 +356,7 @@ ifdef SSPI
   CFLAGS += -DUSE_WINDOWS_SSPI
 endif
 ifdef IPV6
-  CFLAGS += -DENABLE_IPV6 -D_WIN32_WINNT=0x0501
+  CFLAGS += -DENABLE_IPV6
 endif
 ifdef LDAPS
   CFLAGS += -DHAVE_LDAP_SSL
index 227e4e95c95593d152d8d2a8d448c613f58dbe65..1987b237e5d4e3d98402c853b43491ad65b3c816 100644 (file)
@@ -380,7 +380,7 @@ ifdef SPNEGO
   CFLAGS += -DHAVE_SPNEGO
 endif
 ifdef IPV6
-  CFLAGS += -DENABLE_IPV6 -D_WIN32_WINNT=0x0501
+  CFLAGS += -DENABLE_IPV6
 endif
 ifdef LDAPS
   CFLAGS += -DHAVE_LDAP_SSL
index a5ae2bec90fa65af7e984c63dfd4419fa1433057..b3d3cf9631f082fa6d380ef54030debdaf15dd03 100644 (file)
@@ -381,7 +381,7 @@ ifdef SSPI
   CFLAGS += -DUSE_WINDOWS_SSPI
 endif
 ifdef IPV6
-  CFLAGS += -DENABLE_IPV6 -D_WIN32_WINNT=0x0501
+  CFLAGS += -DENABLE_IPV6
 endif
 ifdef LDAPS
   CFLAGS += -DHAVE_LDAP_SSL