summaryrefslogtreecommitdiff
path: root/lib/alloca_.h
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2004-12-19 13:42:03 +0000
committerPaul Eggert <eggert@cs.ucla.edu>2004-12-19 13:42:03 +0000
commite4561f4baf53a1369e72b4eaf9f036c75e91b807 (patch)
tree44755c07cbe1dd5bb8418c6043973d04a6f21956 /lib/alloca_.h
parent1837fcdaf5f8d3c4b7f82a9f36401eaa92e5db44 (diff)
downloadcoreutils-e4561f4baf53a1369e72b4eaf9f036c75e91b807.tar.xz
Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
Remove now-obsolete comment about AIX.
Diffstat (limited to 'lib/alloca_.h')
-rw-r--r--lib/alloca_.h12
1 files changed, 5 insertions, 7 deletions
diff --git a/lib/alloca_.h b/lib/alloca_.h
index 10995510e..799037ce0 100644
--- a/lib/alloca_.h
+++ b/lib/alloca_.h
@@ -18,12 +18,10 @@
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
USA. */
-/* When this file is included, it may be preceded only by preprocessor
- declarations. Thanks to AIX. Therefore we include it right after
- "config.h", not later. */
-
-#ifndef _ALLOCA_H
-# define _ALLOCA_H
+/* Avoid using the symbol _ALLOCA_H here, as Bison assumes _ALLOCA_H
+ means there is a real alloca function. */
+#ifndef _GNULIB_ALLOCA_H
+# define _GNULIB_ALLOCA_H
/* alloca (N) returns a pointer to N bytes of memory
allocated on the stack, which will last until the function returns.
@@ -51,4 +49,4 @@ extern "C"
void *alloca (size_t);
#endif
-#endif /* _ALLOCA_H */
+#endif /* _GNULIB_ALLOCA_H */