1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-01 12:20:26 +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
/* AIX requires this to be the first thing in the file. The #pragma
directive is indented so pre-ANSI compilers will ignore it, rather
than choke on it. */
#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
/* This blob per the Autoconf manual (under "Particular Functions"). */
#if 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
# include <stddef.h>
# ifdef __cplusplus
extern "C"
# endif
#endif
#if HAVE_MALLOC_H
#include <malloc.h> /* alloca on mingw */
void *alloca (size_t);
#endif
#include <assert.h>