瀏覽代碼

WIN32_WINNT definition should really be in dtoolbase.h, not dtoolbase_cc.h

David Rose 22 年之前
父節點
當前提交
b6878df8c4
共有 2 個文件被更改,包括 7 次插入7 次删除
  1. 7 0
      dtool/src/dtoolbase/dtoolbase.h
  2. 0 7
      dtool/src/dtoolbase/dtoolbase_cc.h

+ 7 - 0
dtool/src/dtoolbase/dtoolbase.h

@@ -76,6 +76,13 @@
 #endif
 #endif  /* WIN32_VC */
 
+/*
+  include win32 defns for everything up to WinServer2003, and assume
+  I'm smart enough to use GetProcAddress for backward compat on
+  w95/w98 for newer fns
+*/
+#define _WIN32_WINNT 0x0502
+
 #include "dtoolsymbols.h"
 
 #ifdef __GNUC__

+ 0 - 7
dtool/src/dtoolbase/dtoolbase_cc.h

@@ -108,13 +108,6 @@ typedef ios::iostate ios_iostate;
 typedef ios::seekdir ios_seekdir;
 #endif
 
-#ifdef WIN32_VC
-// include win32 defns for everything up to WinServer2003, and assume I'm smart
-// enough to use GetProcAddress for backward compat on w95/w98 for
-// newer fns
-#define _WIN32_WINNT 0x0502
-#endif  // WIN32_VC
-
 #if defined(WIN32_VC) && defined(FORCE_INLINING)
 // If FORCE_INLINING is defined, we use the keyword __forceinline,
 // which tells MS VC++ to override its internal benefit heuristic