summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwtc%netscape.com <devnull@localhost>1999-09-21 00:45:46 +0000
committerwtc%netscape.com <devnull@localhost>1999-09-21 00:45:46 +0000
commitf4dba54669f230493af072847a2fc3204c0e3169 (patch)
treec00246ff4003eaa6fe020959a093b4204d0290c6
parent036d7c9045dcf6d14d0dc31e9978ccc9b5c417f5 (diff)
downloadnspr-hg-f4dba54669f230493af072847a2fc3204c0e3169.tar.gz
On WIN32, do not include <windef.h> directly. It is better
to include <windows.h>, the mother of all Windows include files. Specifically, in MSVC 6.0, <windef.h> sets WINVER to 0x0500 while <windows.h> sets it to 0x0400 if that macro is not defined. But 0x0500 means NT 5.0 and Win 98, and NT 5.0 is not released yet. To build a retail application right now, we have to set WINVER to 0x0400.
-rw-r--r--lib/ds/plevent.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/ds/plevent.h b/lib/ds/plevent.h
index 035f3827..8bf081b9 100644
--- a/lib/ds/plevent.h
+++ b/lib/ds/plevent.h
@@ -171,9 +171,7 @@ and to ensure that no more events will be delivered for that owner.
#include "prmon.h"
/* For HWND */
-#ifdef _WIN32
-#include <windef.h>
-#elif defined(WIN16)
+#if defined(_WIN32) || defined(WIN16)
#include <windows.h>
#elif defined(XP_OS2)
#include <os2.h>