From 208c5081819ceaafd1da7e097e6ec0a55d141b8f Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Mon, 6 Jul 2020 21:31:54 +0200 Subject: [PATCH] alloca-opt: Fix build error on AIX (regression from 2020-07-05). * gnulib-local/lib/alloca.in.h: Don't include , since it would be a recursive include of the same file. --- gnulib-local/lib/alloca.in.h | 27 +++++++++++---------------- 1 file changed, 11 insertions(+), 16 deletions(-) diff --git a/gnulib-local/lib/alloca.in.h b/gnulib-local/lib/alloca.in.h index 56b9d9e77..1b5fb9d22 100644 --- a/gnulib-local/lib/alloca.in.h +++ b/gnulib-local/lib/alloca.in.h @@ -47,7 +47,10 @@ # ifdef __GNUC__ # define alloca __builtin_alloca # else -# ifdef _MSC_VER +# if defined _AIX + #pragma alloca + /* Alternatively: #define alloca __alloca, works as well. */ +# elif defined _MSC_VER # include # define alloca _alloca # elif defined __DECC && defined __VMS @@ -62,25 +65,17 @@ void *_alloca (unsigned short); # elif defined __MVS__ # include # else -# if HAVE_ALLOCA_H -# include -# else -# ifdef _AIX - #pragma alloca -# else -# ifdef __hpux /* This section must match that of bison generated files. */ -# ifdef __cplusplus +# ifdef __hpux /* This section must match that of bison generated files. */ +# ifdef __cplusplus extern "C" void *alloca (unsigned int); -# else /* not __cplusplus */ +# else /* not __cplusplus */ extern void *alloca (); -# endif /* not __cplusplus */ -# else /* not __hpux */ -# ifndef alloca +# endif /* not __cplusplus */ +# else /* not __hpux */ +# ifndef alloca extern char *alloca (); -# endif -# endif /* __hpux */ # endif -# endif +# endif /* __hpux */ # endif # endif #endif -- 2.47.3