]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
* lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY): Wrap the `f'
authorAkim Demaille <akim@epita.fr>
Wed, 6 Nov 2002 14:01:49 +0000 (14:01 +0000)
committerAkim Demaille <akim@epita.fr>
Wed, 6 Nov 2002 14:01:49 +0000 (14:01 +0000)
declaration in extern "C" too.
Reported by Roberto Bagnara.

ChangeLog
THANKS
lib/autoconf/c.m4

index 4e6455465bf45951586d68ddcfbbc7fbeb4d2304..5e8af271fcf916e24b204b2f4f6885396e341291 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2002-11-06  Akim Demaille  <akim@epita.fr>
+
+       * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY): Wrap the `f'
+       declaration in extern "C" too.
+       Reported by Roberto Bagnara.
+
 2002-11-06  Akim Demaille  <akim@epita.fr>
 
        * tests/torture.at (Configuring subdirectories): Don't use grep
diff --git a/THANKS b/THANKS
index adb9e016f3b626cf6a49095bc300754af164f9f7..6c250db7c3c74380a0cd589e433f43a4925255c1 100644 (file)
--- a/THANKS
+++ b/THANKS
@@ -156,6 +156,7 @@ Ralf S. Engelschall         rse@engelschall.com
 Richard Stallman            rms@gnu.org
 Robert Lipe                 robertlipe@usa.net
 Robert S. Maier             rsm@math.arizona.edu
+Roberto Bagnara             bagnara@cs.unipr.it
 Roland McGrath              roland@gnu.org
 RĂ¼diger Kuhlmann            info@ruediger-kuhlmann.de
 Ruediger Kuhlmann           uck4@rz.uni-karlsruhe.de
index b5b63ba833e249a8eb156f97cb5ee8303c3b3b52..66bc28e648eb4d84c844a1a23d5b15837b0f6256 100644 (file)
@@ -173,11 +173,15 @@ m4_define([AC_LANG_FUNC_LINK_TRY(C)],
 /* Override any gcc2 internal prototype to avoid an error.  */
 #ifdef __cplusplus
 extern "C"
+{
 #endif
 /* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
 char $1 ();
 char (*f) ();
+#ifdef __cplusplus
+}
+#endif
 ],
 [/* The GNU C library defines this for functions which it implements
     to always fail with ENOSYS.  Some functions are actually named