* lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY): Wrap the `f'

declaration in extern "C" too.
Reported by Roberto Bagnara.
This commit is contained in:
Akim Demaille 2002-11-06 14:01:49 +00:00
parent 4b63001766
commit 34afd91665
3 changed files with 11 additions and 0 deletions

View File

@ -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

1
THANKS
View File

@ -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

View 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