summaryrefslogtreecommitdiff
path: root/lib/alloca_.h
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2006-07-04 05:39:07 +0000
committerPaul Eggert <eggert@cs.ucla.edu>2006-07-04 05:39:07 +0000
commit6a9740567292a983b05533901dc7a687ec2fb68c (patch)
tree942771c90c0eff8fc776a1b631e9032e60641ea7 /lib/alloca_.h
parent8e19f6282b0621f63b47716bd2eadfb9d466c758 (diff)
downloadcoreutils-6a9740567292a983b05533901dc7a687ec2fb68c.tar.xz
Sync from gnulib.
Diffstat (limited to 'lib/alloca_.h')
-rw-r--r--lib/alloca_.h26
1 files changed, 14 insertions, 12 deletions
diff --git a/lib/alloca_.h b/lib/alloca_.h
index 3e3fdf43f..dd0b3e98f 100644
--- a/lib/alloca_.h
+++ b/lib/alloca_.h
@@ -1,6 +1,6 @@
/* Memory allocation on the stack.
- Copyright (C) 1995, 1999, 2001, 2002, 2003, 2004 Free Software
+ Copyright (C) 1995, 1999, 2001, 2002, 2003, 2004, 2006 Free Software
Foundation, Inc.
This program is free software; you can redistribute it and/or modify it
@@ -34,19 +34,21 @@
request, the program just crashes.
*/
-#ifdef __GNUC__
-# define alloca __builtin_alloca
-#elif defined _AIX
-# define alloca __alloca
-#elif defined _MSC_VER
-# include <malloc.h>
-# define alloca _alloca
-#else
-# include <stddef.h>
-# ifdef __cplusplus
+#ifndef alloca
+# ifdef __GNUC__
+# define alloca __builtin_alloca
+# elif defined _AIX
+# define alloca __alloca
+# elif defined _MSC_VER
+# include <malloc.h>
+# define alloca _alloca
+# else
+# include <stddef.h>
+# ifdef __cplusplus
extern "C"
-# endif
+# endif
void *alloca (size_t);
+# endif
#endif
#endif /* _GNULIB_ALLOCA_H */