Browse Source

Build fix for Orbis / PS4

ocornut 10 years ago
parent
commit
20cc65788d
1 changed files with 2 additions and 0 deletions
  1. 2 0
      imgui_draw.cpp

+ 2 - 0
imgui_draw.cpp

@@ -18,11 +18,13 @@
 
 #include <stdio.h>      // vsnprintf, sscanf, printf
 #include <new>          // new (ptr)
+#ifndef alloca
 #if defined(_MSC_VER) || defined(__MINGW32__) 
 #include <malloc.h>     // alloca
 #else
 #include <alloca.h>     // alloca
 #endif
+#endif
 
 #ifdef _MSC_VER
 #pragma warning (disable: 4505) // unreferenced local function has been removed (stb stuff)