Browse Source

alloca fix to allow Clang with Microsoft CodeGen path

omar 7 năm trước cách đây
mục cha
commit
6d93011fdf
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  1. 3 0
      imgui_draw.cpp

+ 3 - 0
imgui_draw.cpp

@@ -22,6 +22,9 @@
 #if !defined(alloca)
 #ifdef _WIN32
 #include <malloc.h>     // alloca
+#if !defined(alloca)
+#define alloca _alloca  // for clang with MS Codegen
+#endif
 #elif defined(__GLIBC__) || defined(__sun)
 #include <alloca.h>     // alloca
 #else