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:
parent
d568a582ef
commit
a0ceceba5d
2 changed files with 30 additions and 34 deletions
|
@ -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
|
#if HAVE_ALLOCA_H
|
||||||
than choke on it. */
|
|
||||||
#ifndef __GNUC__
|
|
||||||
# if HAVE_ALLOCA_H
|
|
||||||
# include <alloca.h>
|
# include <alloca.h>
|
||||||
# else
|
#elif defined __GNUC__
|
||||||
# ifdef _AIX
|
# define alloca __builtin_alloca
|
||||||
# pragma alloca
|
#elif defined _AIX
|
||||||
# else
|
# define alloca __alloca
|
||||||
# ifndef alloca /* predefined by HP cc +Olibcalls */
|
#elif defined _MSC_VER
|
||||||
char *alloca ();
|
# include <malloc.h>
|
||||||
|
# define alloca _alloca
|
||||||
|
#else
|
||||||
|
# include <stddef.h>
|
||||||
|
# ifdef __cplusplus
|
||||||
|
extern "C"
|
||||||
# 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>
|
||||||
|
|
|
@ -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
|
#if HAVE_ALLOCA_H
|
||||||
than choke on it. */
|
|
||||||
#ifndef __GNUC__
|
|
||||||
# if HAVE_ALLOCA_H
|
|
||||||
# include <alloca.h>
|
# include <alloca.h>
|
||||||
# else
|
#elif defined __GNUC__
|
||||||
# ifdef _AIX
|
# define alloca __builtin_alloca
|
||||||
# pragma alloca
|
#elif defined _AIX
|
||||||
# else
|
# define alloca __alloca
|
||||||
# ifndef alloca /* predefined by HP cc +Olibcalls */
|
#elif defined _MSC_VER
|
||||||
char *alloca ();
|
# include <malloc.h>
|
||||||
|
# define alloca _alloca
|
||||||
|
#else
|
||||||
|
# include <stddef.h>
|
||||||
|
# ifdef __cplusplus
|
||||||
|
extern "C"
|
||||||
# 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>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue