aboutsummaryrefslogtreecommitdiff
path: root/winsup/cygwin/winsup.h
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2012-07-06 12:13:50 +0000
committerCorinna Vinschen <corinna@vinschen.de>2012-07-06 12:13:50 +0000
commita02924944e135d0b401169e27700afa89a39f0ae (patch)
tree6ed6d5a16a6ff69e6d473cd17dfbac954be10def /winsup/cygwin/winsup.h
parent862de2d0ae4335667aa01b8a6080dbe08ea24112 (diff)
downloadnewlib-a02924944e135d0b401169e27700afa89a39f0ae.zip
newlib-a02924944e135d0b401169e27700afa89a39f0ae.tar.gz
newlib-a02924944e135d0b401169e27700afa89a39f0ae.tar.bz2
* winsup.h (_WIN32_WINNT): Define. Explain why.
Diffstat (limited to 'winsup/cygwin/winsup.h')
-rw-r--r--winsup/cygwin/winsup.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/winsup/cygwin/winsup.h b/winsup/cygwin/winsup.h
index dff81fc..0c96113 100644
--- a/winsup/cygwin/winsup.h
+++ b/winsup/cygwin/winsup.h
@@ -27,7 +27,11 @@ details. */
#define EXPORT_ALIAS(sym,symalias) extern "C" __typeof (sym) symalias __attribute__ ((alias(#sym)));
-#define WINVER 0x0601
+/* 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 _NO_W32_PSEUDO_MODIFIERS
#include <sys/types.h>