diff options
author | Will Estes <wlestes@users.sourceforge.net> | 2007-04-13 16:55:07 +0000 |
---|---|---|
committer | Will Estes <wlestes@users.sourceforge.net> | 2007-04-13 16:55:07 +0000 |
commit | 4fcc35213af9f9d11ce1bd23357f713f33ddf761 (patch) | |
tree | 0b6246f9e5d469d54a20754ae07482dcce6c1be7 /flexdef.h | |
parent | 9b41a091bcb2fb9bd2b6db79d06a0c976d1a5663 (diff) |
refactor and slightly redo alloca testing, resolves bug #1675899
Diffstat (limited to 'flexdef.h')
-rw-r--r-- | flexdef.h | 17 |
1 files changed, 16 insertions, 1 deletions
@@ -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 |