]> granicus.if.org Git - icu/commitdiff
ICU-20364 Cygwin builds need to set WINVER to 0x0601 for Windows 7, similar to MinGW...
authorJeff Genovy <jefgen@microsoft.com>
Wed, 23 Jan 2019 20:41:46 +0000 (12:41 -0800)
committerJeff Genovy <29107334+jefgen@users.noreply.github.com>
Thu, 24 Jan 2019 01:20:15 +0000 (17:20 -0800)
icu4c/source/config/mh-cygwin
icu4c/source/config/mh-cygwin-msvc
icu4c/source/config/mh-cygwin64

index efba5511dd72898352283057b9e252f567290d16..1b09a5bf928d5bc39d683941c6afc70b6da26b78 100644 (file)
@@ -18,6 +18,10 @@ else
 STATICCPPFLAGS = -DU_STATIC_IMPLEMENTATION
 endif
 
+## ICU requires a minimum target of Windows 7, and WINVER is not set to this by default.
+## https://msdn.microsoft.com/en-us/library/aa383745.aspx
+CPPFLAGS += -DWINVER=0x0601 -D_WIN32_WINNT=0x0601
+
 ## Flags for position independent code
 SHAREDLIBCFLAGS = 
 SHAREDLIBCXXFLAGS = 
index 4744bb949e3cfba77a15668324ad954cfe181d01..0db6b2654fa9eec1a33cb4e01f2cf94780af4ea0 100644 (file)
@@ -24,6 +24,10 @@ else
 STATICCPPFLAGS = -DU_STATIC_IMPLEMENTATION
 endif
 
+## ICU requires a minimum target of Windows 7, and WINVER is not set to this by default.
+## https://msdn.microsoft.com/en-us/library/aa383745.aspx
+CPPFLAGS += -DWINVER=0x0601 -D_WIN32_WINNT=0x0601
+
 ## Flags for position independent code
 SHAREDLIBCFLAGS = 
 SHAREDLIBCXXFLAGS = 
index 6be8db77026bd75a44819b40dee3cd29ba902e9d..0eee4736846a0dee69340e4da0f779e0a40a618e 100644 (file)
@@ -18,6 +18,10 @@ else
 STATICCPPFLAGS = -DU_STATIC_IMPLEMENTATION
 endif
 
+## ICU requires a minimum target of Windows 7, and WINVER is not set to this by default.
+## https://msdn.microsoft.com/en-us/library/aa383745.aspx
+CPPFLAGS += -DWINVER=0x0601 -D_WIN32_WINNT=0x0601
+
 ## Flags for position independent code
 SHAREDLIBCFLAGS = 
 SHAREDLIBCXXFLAGS =