OSDN Git Service

* include/windef.h (WINVER): Add documentation.
authorearnie <earnie>
Sat, 7 Sep 2002 16:47:35 +0000 (16:47 +0000)
committerearnie <earnie>
Sat, 7 Sep 2002 16:47:35 +0000 (16:47 +0000)
(_WIN32_WINNT): Ditto.
Special thanks to Paul Schmidt <paul@tricattechnologies.com>

winsup/w32api/ChangeLog
winsup/w32api/include/windef.h

index 404a8c3..d265c23 100644 (file)
@@ -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.
index 00900c0..2f703bd 100644 (file)
@@ -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