Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEarnie Boyd <earnie@users.sf.net>2002-09-07 20:47:35 +0400
committerEarnie Boyd <earnie@users.sf.net>2002-09-07 20:47:35 +0400
commitde3387b3042527997840bc330da5f6fe5ecd49db (patch)
treecdf4f37042f199dbbfa20d3df0b5fb3aaf668cd1
parent218b7a5638aed833f8e8cded47e66309cbba8cd3 (diff)
* include/windef.h (WINVER): Add documentation.
(_WIN32_WINNT): Ditto. Special thanks to Paul Schmidt <paul@tricattechnologies.com>
-rw-r--r--winsup/w32api/ChangeLog6
-rw-r--r--winsup/w32api/include/windef.h11
2 files changed, 17 insertions, 0 deletions
diff --git a/winsup/w32api/ChangeLog b/winsup/w32api/ChangeLog
index 404a8c382..d265c234e 100644
--- a/winsup/w32api/ChangeLog
+++ b/winsup/w32api/ChangeLog
@@ -1,3 +1,9 @@
+2002-09-07 Earnie Boyd <earnie@users.sf.net>
+
+ * include/windef.h (WINVER): Add documentation.
+ (_WIN32_WINNT): Ditto.
+ Special thanks to Paul Schmidt <paul@tricattechnologies.com>
+
2002-09-06 Danny Smith <dannysmith@users.sourceforge.net>
* lib/Makefile.in (TEST_OPTIONS): Define WINVER to 0x0666.
diff --git a/winsup/w32api/include/windef.h b/winsup/w32api/include/windef.h
index 00900c0d0..2f703bdc5 100644
--- a/winsup/w32api/include/windef.h
+++ b/winsup/w32api/include/windef.h
@@ -10,9 +10,20 @@ extern "C" {
#ifndef WINVER
#define WINVER 0x0400
+/*
+ * If you need Win32 API features newer the Win95 and WinNT then you must
+ * define WINVER before including windows.h or any other method of including
+ * the windef.h header.
+ */
#endif
#ifndef _WIN32_WINNT
#define _WIN32_WINNT WINVER
+/*
+ * There may be the need to define _WIN32_WINNT to a value different from
+ * the value of WINVER. I don't have any example of why you would do that.
+ * However, if you must then define _WIN32_WINNT to the value required before
+ * including windows.h or any other method of including the windef.h header.
+ */
#endif
#ifndef WIN32
#define WIN32