[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
documentation of AC_FUNC_ALLOCA and mingw-w64 compilers
From: |
Vincent Torri |
Subject: |
documentation of AC_FUNC_ALLOCA and mingw-w64 compilers |
Date: |
Sun, 22 Jan 2012 13:17:32 +0100 (CET) |
Hey,
when using AC_FUNC_ALLOCA, the autoconf documentation says that one should
paste some code. That code generates a warning because:
1) the doc says to paste
#elif defined __GNUC__
# define alloca __builtin_alloca
2) the MinGW-w64 compiler already defines alloca in malloc.h, that header
files being included by stdlib.h because STDC_HEADERS is defined.
I don't know how to properly fix the doc. One solution would be:
#elif defined __GNUC__
# ifndef alloca
# define alloca __builtin_alloca
# endif
what do you think ?
regards
Vincent Torri
- documentation of AC_FUNC_ALLOCA and mingw-w64 compilers,
Vincent Torri <=
- Re: documentation of AC_FUNC_ALLOCA and mingw-w64 compilers, Bob Friesenhahn, 2012/01/22
- Re: documentation of AC_FUNC_ALLOCA and mingw-w64 compilers, Paul Eggert, 2012/01/22
- Re: documentation of AC_FUNC_ALLOCA and mingw-w64 compilers, Vincent Torri, 2012/01/22
- Re: documentation of AC_FUNC_ALLOCA and mingw-w64 compilers, Paul Eggert, 2012/01/22
- Re: documentation of AC_FUNC_ALLOCA and mingw-w64 compilers, Vincent Torri, 2012/01/22
- Re: documentation of AC_FUNC_ALLOCA and mingw-w64 compilers, Paul Eggert, 2012/01/23
- Re: documentation of AC_FUNC_ALLOCA and mingw-w64 compilers, Vincent Torri, 2012/01/23
- Re: documentation of AC_FUNC_ALLOCA and mingw-w64 compilers, Paul Eggert, 2012/01/23