Parcourir la source

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

Ryan Crandall il y a 7 ans
Parent
commit
34203d5008
1 fichiers modifiés avec 2 ajouts et 0 suppressions
  1. 2 0
      examples/imgui_impl_win32.cpp

+ 2 - 0
examples/imgui_impl_win32.cpp

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