From 8952b93b2f5d326dd8c56c838a5380472504fd6f Mon Sep 17 00:00:00 2001 From: ocornut Date: Wed, 15 Jul 2015 07:31:32 -0600 Subject: [PATCH] Include for alloca() --- imgui.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/imgui.cpp b/imgui.cpp index f1dcdacb..a9ffa41c 100644 --- a/imgui.cpp +++ b/imgui.cpp @@ -471,6 +471,11 @@ #include // sqrtf, fabsf, fmodf, powf, cosf, sinf, floorf, ceilf #include // vsnprintf, sscanf, printf #include // new (ptr) +#if defined(_MSC_VER) +#include // alloca +#else +#include // alloca +#endif #if defined(_MSC_VER) && _MSC_VER <= 1500 // MSVC 2008 or earlier #include // intptr_t #else