From 6844952d566eed6f0ebf64425e647baf29bd328c Mon Sep 17 00:00:00 2001 From: ocornut Date: Fri, 24 Apr 2015 09:22:29 +0200 Subject: [PATCH] Fixed build with Visual Studio 2008 or earlier (via PR #203) --- imgui.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/imgui.cpp b/imgui.cpp index a0f0fe4a..c2f42ebc 100644 --- a/imgui.cpp +++ b/imgui.cpp @@ -400,9 +400,13 @@ #include "imgui.h" #include // toupper, isprint #include // sqrtf, fabsf, fmodf, powf, cosf, sinf, floorf, ceilf -#include // intptr_t #include // vsnprintf, sscanf #include // new (ptr) +#if defined(_MSC_VER) && _MSC_VER <= 1500 // MSVC 2008 or earlier +#include // intptr_t +#else +#include // intptr_t +#endif #ifdef _MSC_VER #pragma warning (disable: 4505) // unreferenced local function has been removed (stb stuff)