summaryrefslogtreecommitdiff
path: root/flexdef.h
diff options
context:
space:
mode:
authorWill Estes <wlestes@users.sourceforge.net>2007-04-13 16:55:07 +0000
committerWill Estes <wlestes@users.sourceforge.net>2007-04-13 16:55:07 +0000
commit4fcc35213af9f9d11ce1bd23357f713f33ddf761 (patch)
tree0b6246f9e5d469d54a20754ae07482dcce6c1be7 /flexdef.h
parent9b41a091bcb2fb9bd2b6db79d06a0c976d1a5663 (diff)
refactor and slightly redo alloca testing, resolves bug #1675899
Diffstat (limited to 'flexdef.h')
-rw-r--r--flexdef.h17
1 files changed, 16 insertions, 1 deletions
diff --git a/flexdef.h b/flexdef.h
index 2b3b760..29062c3 100644
--- a/flexdef.h
+++ b/flexdef.h
@@ -36,7 +36,22 @@
#define FLEXDEF_H 1
#ifdef HAVE_CONFIG_H
-#include "config.h"
+#include <config.h>
+#endif
+
+/* AIX requires this to be the first thing in the file. */
+#ifndef __GNUC__
+# if HAVE_ALLOCA_H
+# include <alloca.h>
+# else
+# ifdef _AIX
+ #pragma alloca
+# else
+# ifndef alloca /* predefined by HP cc +Olibcalls */
+char *alloca ();
+# endif
+# endif
+# endif
#endif
#ifdef STDC_HEADERS