diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2012-01-23 00:10:55 -0800 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2012-01-23 00:11:20 -0800 |
commit | 015ecc5018782c18fb20d0259c8a56cc258b9ab4 (patch) | |
tree | 4d2960783a7fd82af3b24dac1a57aac828d8e857 | |
parent | b035df38e0d888bab264245623c8cd72bd05db4d (diff) | |
download | autoconf-015ecc5018782c18fb20d0259c8a56cc258b9ab4.tar.gz |
doc: work around mingw-w64 alloca problem with example
* doc/autoconf.texi (Particular Functions): In example code for
alloca, do not re-#define alloca. This works around a mingw-w64
problem reported by Vincent Torri in
<http://lists.gnu.org/archive/html/autoconf/2012-01/msg00018.html>.
-rw-r--r-- | doc/autoconf.texi | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/doc/autoconf.texi b/doc/autoconf.texi index 247a46ca..82837a2b 100644 --- a/doc/autoconf.texi +++ b/doc/autoconf.texi @@ -4863,15 +4863,15 @@ like the following, to declare it properly. #endif #ifdef HAVE_ALLOCA_H # include <alloca.h> -#elif defined __GNUC__ -# define alloca __builtin_alloca -#elif defined _AIX -# define alloca __alloca -#elif defined _MSC_VER -# include <malloc.h> -# define alloca _alloca -#else -# ifndef HAVE_ALLOCA +#elif !defined alloca +# ifdef __GNUC__ +# define alloca __builtin_alloca +# elif defined _AIX +# define alloca __alloca +# elif defined _MSC_VER +# include <malloc.h> +# define alloca _alloca +# elif !defined HAVE_ALLOCA # ifdef __cplusplus extern "C" # endif |