瀏覽代碼

Speculative build fix for using alloca on PS4 & FreeBSD

ocornut 10 年之前
父節點
當前提交
6b23fca1ff
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      imgui_draw.cpp

+ 1 - 1
imgui_draw.cpp

@@ -18,7 +18,7 @@
 
 #include <stdio.h>      // vsnprintf, sscanf, printf
 #include <new>          // new (ptr)
-#ifndef alloca
+#if !defined(alloca) && !defined(__FreeBSD__)
 #if _WIN32
 #include <malloc.h>     // alloca
 #else