commit | 767649afb162dd1dba3b68a132d7401b9a4316f7 | [log] [tgz] |
---|---|---|
author | omar <omarcornut@gmail.com> | Fri Aug 31 18:07:47 2018 +0200 |
committer | omar <omarcornut@gmail.com> | Fri Aug 31 18:07:47 2018 +0200 |
tree | a69c348e279b656b8b9cbcc5ffca2b5110f0f847 | |
parent | 5d40d295b3c98023914d736be2d3bc766bf4ba1c [diff] |
Fix missing include on some systems to use intptr_t. (#2036, #2054)
diff --git a/imgui_widgets.cpp b/imgui_widgets.cpp index 285617f..c2c67e7 100644 --- a/imgui_widgets.cpp +++ b/imgui_widgets.cpp
@@ -33,6 +33,11 @@ #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