From 34afd91665c23b7c23d93b204baea3ebb93d6f1a Mon Sep 17 00:00:00 2001 From: Akim Demaille Date: Wed, 6 Nov 2002 14:01:49 +0000 Subject: [PATCH] * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY): Wrap the `f' declaration in extern "C" too. Reported by Roberto Bagnara. --- ChangeLog | 6 ++++++ THANKS | 1 + lib/autoconf/c.m4 | 4 ++++ 3 files changed, 11 insertions(+) diff --git a/ChangeLog b/ChangeLog index 4e6455465..5e8af271f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2002-11-06 Akim Demaille + + * 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 * tests/torture.at (Configuring subdirectories): Don't use grep diff --git a/THANKS b/THANKS index adb9e016f..6c250db7c 100644 --- 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 diff --git a/lib/autoconf/c.m4 b/lib/autoconf/c.m4 index b5b63ba83..66bc28e64 100644 --- a/lib/autoconf/c.m4 +++ b/lib/autoconf/c.m4 @@ -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 -- 2.47.3