mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-22 10:43:02 +00:00
[__hpux]: Include alloca.h (right for HPUX 10)
instead of declaring alloca (right for HPUX 9).
This commit is contained in:
@@ -44,6 +44,11 @@
|
|||||||
#include <malloc.h>
|
#include <malloc.h>
|
||||||
#pragma alloca
|
#pragma alloca
|
||||||
#else /* not MSDOS, or __TURBOC__, or _AIX */
|
#else /* not MSDOS, or __TURBOC__, or _AIX */
|
||||||
|
#ifdef __hpux /* This is right for HPUX 10. */
|
||||||
|
#include <alloca.h>
|
||||||
|
#endif
|
||||||
|
#if 0 /* This was right for HPUX 9.
|
||||||
|
Unfortunately there is no clean way to distinguish. */
|
||||||
#ifdef __hpux
|
#ifdef __hpux
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
@@ -53,6 +58,7 @@ void *alloca (unsigned int);
|
|||||||
void *alloca ();
|
void *alloca ();
|
||||||
#endif /* not __cplusplus */
|
#endif /* not __cplusplus */
|
||||||
#endif /* __hpux */
|
#endif /* __hpux */
|
||||||
|
#endif /* 0 */
|
||||||
#endif /* not _AIX */
|
#endif /* not _AIX */
|
||||||
#endif /* not MSDOS, or __TURBOC__ */
|
#endif /* not MSDOS, or __TURBOC__ */
|
||||||
#endif /* not sparc. */
|
#endif /* not sparc. */
|
||||||
|
|||||||
@@ -44,6 +44,11 @@
|
|||||||
#include <malloc.h>
|
#include <malloc.h>
|
||||||
#pragma alloca
|
#pragma alloca
|
||||||
#else /* not MSDOS, or __TURBOC__, or _AIX */
|
#else /* not MSDOS, or __TURBOC__, or _AIX */
|
||||||
|
#ifdef __hpux /* This is right for HPUX 10. */
|
||||||
|
#include <alloca.h>
|
||||||
|
#endif
|
||||||
|
#if 0 /* This was right for HPUX 9.
|
||||||
|
Unfortunately there is no clean way to distinguish. */
|
||||||
#ifdef __hpux
|
#ifdef __hpux
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
@@ -53,6 +58,7 @@ void *alloca (unsigned int);
|
|||||||
void *alloca ();
|
void *alloca ();
|
||||||
#endif /* not __cplusplus */
|
#endif /* not __cplusplus */
|
||||||
#endif /* __hpux */
|
#endif /* __hpux */
|
||||||
|
#endif /* 0 */
|
||||||
#endif /* not _AIX */
|
#endif /* not _AIX */
|
||||||
#endif /* not MSDOS, or __TURBOC__ */
|
#endif /* not MSDOS, or __TURBOC__ */
|
||||||
#endif /* not sparc. */
|
#endif /* not sparc. */
|
||||||
|
|||||||
@@ -44,6 +44,11 @@
|
|||||||
#include <malloc.h>
|
#include <malloc.h>
|
||||||
#pragma alloca
|
#pragma alloca
|
||||||
#else /* not MSDOS, or __TURBOC__, or _AIX */
|
#else /* not MSDOS, or __TURBOC__, or _AIX */
|
||||||
|
#ifdef __hpux /* This is right for HPUX 10. */
|
||||||
|
#include <alloca.h>
|
||||||
|
#endif
|
||||||
|
#if 0 /* This was right for HPUX 9.
|
||||||
|
Unfortunately there is no clean way to distinguish. */
|
||||||
#ifdef __hpux
|
#ifdef __hpux
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
@@ -53,6 +58,7 @@ void *alloca (unsigned int);
|
|||||||
void *alloca ();
|
void *alloca ();
|
||||||
#endif /* not __cplusplus */
|
#endif /* not __cplusplus */
|
||||||
#endif /* __hpux */
|
#endif /* __hpux */
|
||||||
|
#endif /* 0 */
|
||||||
#endif /* not _AIX */
|
#endif /* not _AIX */
|
||||||
#endif /* not MSDOS, or __TURBOC__ */
|
#endif /* not MSDOS, or __TURBOC__ */
|
||||||
#endif /* not sparc. */
|
#endif /* not sparc. */
|
||||||
|
|||||||
Reference in New Issue
Block a user