Browse Source

imgui_impl_win32: Don't redefine WIN32_LEAN_AND_MEAN if already defined (#2014)

Ryan Crandall 7 năm trước cách đây
mục cha
commit
34203d5008
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      examples/imgui_impl_win32.cpp

+ 2 - 0
examples/imgui_impl_win32.cpp

@@ -8,7 +8,9 @@
 
 #include "imgui.h"
 #include "imgui_impl_win32.h"
+#ifndef WIN32_LEAN_AND_MEAN
 #define WIN32_LEAN_AND_MEAN
+#endif
 #include <windows.h>
 #include <tchar.h>