[newlib-cygwin] winsup.h: Claim Windows 10 support

Corinna Vinschen corinna@sourceware.org
Tue Aug 25 20:23:00 GMT 2015


https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=7f3efa3b65e50b35d4e9f895e625e0878edc196a

commit 7f3efa3b65e50b35d4e9f895e625e0878edc196a
Author: Corinna Vinschen <corinna@vinschen.de>
Date:   Tue Aug 25 22:23:01 2015 +0200

    winsup.h: Claim Windows 10 support
    
            * winsup.h (_WIN32_WINNT): Set to 0x0a00 for Windows 10.
            (WINVER): Ditto.  Remove outdated comment.
    
    Signed-off-by: Corinna Vinschen <corinna@vinschen.de>

Diff:
---
 winsup/cygwin/ChangeLog     | 5 +++++
 winsup/cygwin/release/2.2.2 | 4 ++++
 winsup/cygwin/winsup.h      | 6 ++----
 3 files changed, 11 insertions(+), 4 deletions(-)

diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index 5df64e1..0c3f61b 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,5 +1,10 @@
 2015-08-25  Corinna Vinschen  <corinna@vinschen.de>
 
+	* winsup.h (_WIN32_WINNT): Set to 0x0a00 for Windows 10.
+	(WINVER): Ditto.  Remove outdated comment.
+
+2015-08-25  Corinna Vinschen  <corinna@vinschen.de>
+
 	* autoload.cc (std_dll_init): Revert using full paths to system DLLs.
 
 2015-08-25  Corinna Vinschen  <corinna@vinschen.de>
diff --git a/winsup/cygwin/release/2.2.2 b/winsup/cygwin/release/2.2.2
index eb2162b..baa2d0d 100644
--- a/winsup/cygwin/release/2.2.2
+++ b/winsup/cygwin/release/2.2.2
@@ -12,3 +12,7 @@ Bug Fixes
 - Fix a hang when stracing a forking or spawning process without activating
   stracing of child processes.
   Addresses: https://cygwin.com/ml/cygwin/2015-08/msg00390.html
+
+- Fix long-standing potential SEGV on 32 bit Cygwin when the dynamic loader
+  for OS functions fails to load a function on Windows 7 or later.
+  Addresses: No actual bug report known.
diff --git a/winsup/cygwin/winsup.h b/winsup/cygwin/winsup.h
index 4b549dd..b2c8602 100644
--- a/winsup/cygwin/winsup.h
+++ b/winsup/cygwin/winsup.h
@@ -19,10 +19,8 @@ details. */
 
 #define EXPORT_ALIAS(sym,symalias) extern "C" __typeof (sym) symalias __attribute__ ((alias(#sym)));
 
-/* Fun, fun, fun.  On Mingw64, WINVER is set according to the value of
-   _WIN32_WINNT, on Mingw32 it's exactly the opposite... */
-#define _WIN32_WINNT 0x0602
-#define WINVER 0x0602
+#define _WIN32_WINNT 0x0a00
+#define WINVER 0x0a00
 
 #define _NO_W32_PSEUDO_MODIFIERS



More information about the Cygwin-cvs mailing list