Explorar o código

Fix missing include on some systems to use intptr_t. (#2036, #2054)

omar %!s(int64=7) %!d(string=hai) anos
pai
achega
767649afb1
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  1. 5 0
      imgui_widgets.cpp

+ 5 - 0
imgui_widgets.cpp

@@ -33,6 +33,11 @@ Index of this file:
 #include "imgui_internal.h"
 
 #include <ctype.h>      // toupper, isprint
+#if defined(_MSC_VER) && _MSC_VER <= 1500 // MSVC 2008 or earlier
+#include <stddef.h>     // intptr_t
+#else
+#include <stdint.h>     // intptr_t
+#endif
 
 // Visual Studio warnings
 #ifdef _MSC_VER