Menu

#117 NstAssert includes Windows.h instead of windows.h

open
nobody
None
5
2008-02-29
2008-02-29
NightStrike
No

To support case sensitive systems, headers like "windows.h" should be referenced with lowercase. This allows things like cross compiling using mingw. Recommend the following patch:

--- NstAssert.cpp 2008-02-28 21:20:29.000000000 -0500
+++ NstAssert.cpp.old 2008-02-28 21:21:09.000000000 -0500
@@ -35,7 +35,7 @@
#define WIN32_LEAN_AND_MEAN
#endif

-#include <windows.h>
+#include <Windows.h>

#ifdef _UNICODE
#define NST_MESSAGEBOX MessageBoxA

Discussion


Log in to post a comment.