summaryrefslogtreecommitdiff
path: root/math/fxt/files/patch-src_fxtalloca.h
blob: 7b7ec5f31996011f2c23388b88b4c1969a5f8fd6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--- src/fxtalloca.h.orig	2012-11-21 18:05:08 UTC
+++ src/fxtalloca.h
@@ -16,13 +16,13 @@
 #if defined  __GNUC__  // GNU compiler
 #define ALLOCA(Type, v, n)  Type v[n]
 #else // __GNUC__
-#include <alloca.h>
+#include <stdlib.h>
 #define ALLOCA(Type, v, n)  Type *v = (Type *)alloca((n)*sizeof(Type))
 #endif // __GNUC__
 
 #ifdef FORCE_ALLOCA_H
 #undef ALLOCA
-#include <alloca.h>
+#include <stdlib.h>
 //#include <stdlib.h>  // for BSD
 #define ALLOCA(Type, v, n)  Type *v = (Type *)alloca((n)*sizeof(Type))
 #endif