]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Don't define alloca to __alloca since if gcc is used __alloca is not
authorUlrich Drepper <drepper@redhat.com>
Mon, 25 Aug 1997 20:45:52 +0000 (20:45 +0000)
committerUlrich Drepper <drepper@redhat.com>
Mon, 25 Aug 1997 20:45:52 +0000 (20:45 +0000)
defined to __builtin_alloca and so might not be available.

stdlib/alloca.h

index 07e794c29212630e8237e6694d715ffa2e878424..0416d3b9b1941dfd777581d46b6ea90809f012c6 100644 (file)
@@ -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 */