From 767649afb162dd1dba3b68a132d7401b9a4316f7 Mon Sep 17 00:00:00 2001 From: omar Date: Fri, 31 Aug 2018 18:07:47 +0200 Subject: [PATCH] Fix missing include on some systems to use intptr_t. (#2036, #2054) --- imgui_widgets.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/imgui_widgets.cpp b/imgui_widgets.cpp index 285617fe..c2c67e78 100644 --- a/imgui_widgets.cpp +++ b/imgui_widgets.cpp @@ -33,6 +33,11 @@ Index of this file: #include "imgui_internal.h" #include // toupper, isprint +#if defined(_MSC_VER) && _MSC_VER <= 1500 // MSVC 2008 or earlier +#include // intptr_t +#else +#include // intptr_t +#endif // Visual Studio warnings #ifdef _MSC_VER