diff options
author | Ulrich Drepper <drepper@redhat.com> | 1997-08-25 20:45:52 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 1997-08-25 20:45:52 +0000 |
commit | 9f089c0d61a563808ce49f0d31855da7eb80976f (patch) | |
tree | 1c498bb256fe623c72cb20b89f86195d427fe450 | |
parent | fc1f40bf904a54e0293f867e6620aca9751acf6e (diff) | |
download | glibc-9f089c0d61a563808ce49f0d31855da7eb80976f.tar.gz |
Don't define alloca to __alloca since if gcc is used __alloca is not
defined to __builtin_alloca and so might not be available.
-rw-r--r-- | stdlib/alloca.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/stdlib/alloca.h b/stdlib/alloca.h index 07e794c292..0416d3b9b1 100644 --- a/stdlib/alloca.h +++ b/stdlib/alloca.h @@ -1,4 +1,4 @@ -/* Copyright (C) 1992, 1996 Free Software Foundation, Inc. +/* Copyright (C) 1992, 1996, 1997 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -18,6 +18,7 @@ #ifndef _ALLOCA_H #define _ALLOCA_H 1 + #include <features.h> #define __need_size_t @@ -34,11 +35,10 @@ extern __ptr_t __alloca __P ((size_t __size)); extern __ptr_t alloca __P ((size_t __size)); #ifdef __GNUC__ -#define __alloca(size) __builtin_alloca(size) +# define __alloca(size) __builtin_alloca (size) +# define alloca(size) __alloca (size) #endif /* GCC. */ -#define alloca(size) __alloca(size) - __END_DECLS #endif /* alloca.h */ |