]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
docs: update alloca recommendations
authorEric Blake <eblake@redhat.com>
Wed, 8 Sep 2010 15:23:03 +0000 (09:23 -0600)
committerEric Blake <eblake@redhat.com>
Wed, 8 Sep 2010 15:42:56 +0000 (09:42 -0600)
* doc/autoconf.texi (Particular Functions): Don't redeclare alloca
on FreeBSD.
* THANKS: Update.
Reported by Giorgos Keramidas.

Signed-off-by: Eric Blake <eblake@redhat.com>
ChangeLog
THANKS
doc/autoconf.texi

index c874eabe5ce72604a094f67486222737a166d494..5edb50c479364f8eaf5e9ac350851941851ef1d3 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2010-09-08  Eric Blake  <eblake@redhat.com>
 
+       docs: update alloca recommendations
+       * doc/autoconf.texi (Particular Functions): Don't redeclare alloca
+       on FreeBSD.
+       * THANKS: Update.
+       Reported by Giorgos Keramidas.
+
        docs: link to GNU Coding Standards in intro
        * doc/autoconf.texi (Introduction): Actually link to the
        standards.  Make other references consistent.
diff --git a/THANKS b/THANKS
index 675d6d9c3a884c48327a83aa27c54ef0f75ee17f..286201b335baf3e5f1197f01bfbaff7b07cf6d67 100644 (file)
--- a/THANKS
+++ b/THANKS
@@ -139,6 +139,7 @@ Gary V. Vaughan             gvaughan@oranda.demon.co.uk
 Geir Ove Myhr               myhr@stud.fim.ntnu.no
 Gerrit P. Haase             gp@familiehaase.de
 Gideon Go                   gideon.go@gmail.com
+Giorgos Keramidas           gkeramidas@gmail.com
 Giuseppe Guerrini           guisguerrini@racine.ra.it
 Glenn P. Davis              davis@unidata.ucar.edu
 Godmar Back                 gback@cs.utah.edu
index 99054c5960c641d6fa81b436331c6aae16727b92..acc26871eb9661fed068130251e2a44b6cbd4136 100644 (file)
@@ -4816,6 +4816,14 @@ like the following, to declare it properly.
 
 @example
 @group
+#ifdef STDC_HEADERS
+# include <stdlib.h>
+# include <stddef.h>
+#else
+# ifdef HAVE_STDLIB_H
+#  include <stdlib.h>
+# endif
+#endif
 #ifdef HAVE_ALLOCA_H
 # include <alloca.h>
 #elif defined __GNUC__
@@ -4826,11 +4834,12 @@ like the following, to declare it properly.
 # include <malloc.h>
 # define alloca _alloca
 #else
-# include <stddef.h>
-# ifdef  __cplusplus
+# ifndef HAVE_ALLOCA
+#  ifdef  __cplusplus
 extern "C"
-# endif
+#  endif
 void *alloca (size_t);
+# endif
 #endif
 @end group
 @end example