pike.git/
src/
global.h
Branch:
Tag:
Non-build tags
All tags
No tags
2000-08-11
2000-08-11 14:58:25 by Henrik Grubbström (Grubba) <grubba@grubba.org>
44e2948246c4f2c6a1d16f7418e464ee8ab4ec55 (
32
lines) (+
23
/-
9
)
[
Show
|
Annotate
]
Branch:
7.9
Improved handling of alloca().
Rev: src/global.h:1.49
5:
\*/ /*
-
* $Id: global.h,v 1.
48
2000/08/
10
12
:
17
:
07
grubba Exp $
+
* $Id: global.h,v 1.
49
2000/08/
11
14
:
58
:
25
grubba Exp $
*/ #ifndef GLOBAL_H #define GLOBAL_H
40:
#endif /* !_PROTOTYPES */ /*
+
* We want to use __builtin functions.
+
*/
+
#ifndef __BUILTIN_VA_ARG_INCR
+
#define __BUILTIN_VA_ARG_INCR 1
+
#endif /* !__BUILTIN_VA_ARG_INCR */
+
+
/*
* Some structure forward declarations are needed. */
90:
#endif /* AIX requires this to be the first thing in the file. */
-
#ifdef __GNUC__
-
# ifdef alloca
-
# undef alloca
+
#
if HAVE_ALLOCA_H
+
# include <alloca.h>
+
#
ifdef __GNUC__
+
#
ifdef alloca
+
#
undef alloca
+
# endif
+
# define alloca __builtin_alloca
# endif
-
# define alloca __builtin_alloca
+
#else
-
#
if
HAVE
_
ALLOCA
_
H
-
#
include
<
alloca
.h>
+
#
ifdef
__
GNUC__
+
#
ifdef
alloca
+
# undef alloca
+
# endif
+
# define alloca __builtin_alloca
# else # ifdef _AIX #pragma alloca # else # ifndef alloca /* predefined by HP cc +Olibcalls */
-
char
*alloca
();
+
void
*alloca();
# endif # endif # endif