1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-01 20:30:28 +02:00

(alloca): Update <alloca.h> etc blob, per current

autoconf recommendation.  Should fix Solaris 10 reported by Claes
Wallin.
This commit is contained in:
Kevin Ryde 2006-07-21 00:32:32 +00:00
parent d568a582ef
commit a0ceceba5d
2 changed files with 30 additions and 34 deletions

View file

@ -37,24 +37,22 @@
#ifndef DEVAL #ifndef DEVAL
/* AIX requires this to be the first thing in the file. The #pragma /* This blob per the Autoconf manual (under "Particular Functions"). */
directive is indented so pre-ANSI compilers will ignore it, rather
than choke on it. */
#ifndef __GNUC__
#if HAVE_ALLOCA_H #if HAVE_ALLOCA_H
# include <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 #else
# ifdef _AIX # include <stddef.h>
# pragma alloca # ifdef __cplusplus
# else extern "C"
# ifndef alloca /* predefined by HP cc +Olibcalls */
char *alloca ();
# endif # endif
# endif void *alloca (size_t);
# endif
#endif
#if HAVE_MALLOC_H
#include <malloc.h> /* alloca on mingw */
#endif #endif
#include <assert.h> #include <assert.h>

View file

@ -29,24 +29,22 @@
# include <config.h> # include <config.h>
#endif #endif
/* AIX requires this to be the first thing in the file. The #pragma /* This blob per the Autoconf manual (under "Particular Functions"). */
directive is indented so pre-ANSI compilers will ignore it, rather
than choke on it. */
#ifndef __GNUC__
#if HAVE_ALLOCA_H #if HAVE_ALLOCA_H
# include <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 #else
# ifdef _AIX # include <stddef.h>
# pragma alloca # ifdef __cplusplus
# else extern "C"
# ifndef alloca /* predefined by HP cc +Olibcalls */
char *alloca ();
# endif # endif
# endif void *alloca (size_t);
# endif
#endif
#if HAVE_MALLOC_H
#include <malloc.h> /* alloca on mingw, though its not used on that system */
#endif #endif
#include <stdio.h> #include <stdio.h>