浏览代码

Apply WIN32_LEAN_AND_MEAN redefine fix to SDL_syswm.h too.

This is related to 36ffc47b6033, which fixes bug 2508.
J?rgen P. Tjern? 11 年之前
父节点
当前提交
744d4f02e6
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      include/SDL_syswm.h

+ 2 - 0
include/SDL_syswm.h

@@ -52,7 +52,9 @@ struct SDL_SysWMinfo;
 #else
 #else
 
 
 #if defined(SDL_VIDEO_DRIVER_WINDOWS)
 #if defined(SDL_VIDEO_DRIVER_WINDOWS)
+#ifndef WIN32_LEAN_AND_MEAN
 #define WIN32_LEAN_AND_MEAN
 #define WIN32_LEAN_AND_MEAN
+#endif
 #include <windows.h>
 #include <windows.h>
 #endif
 #endif