2
0
Эх сурвалжийг харах

Fixed alloca include for SunOS (#1319)

omar 8 жил өмнө
parent
commit
65632d2682
1 өөрчлөгдсөн 3 нэмэгдсэн , 3 устгасан
  1. 3 3
      imgui_draw.cpp

+ 3 - 3
imgui_draw.cpp

@@ -21,10 +21,10 @@
 #if !defined(alloca)
 #ifdef _WIN32
 #include <malloc.h>     // alloca
-#elif !defined(__GLIBC__)
-#include <stdlib.h>     // alloca
+#elif defined(__GLIBC__) || defined(__sun)
+#include <alloca.h>     // alloca
 #else
-#include <alloca.h>     // alloca. glibc has an alloca specific header
+#include <stdlib.h>     // alloca
 #endif
 #endif