From: Ossama Othman Date: Thu, 29 Apr 1999 07:53:52 +0000 (+0000) Subject: * ltconfig.in (dlopen): Declare it as extern "C" in C++. X-Git-Tag: release-1-3~15 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9d69948a4150f0a133705977bb7b0fec22cb9d86;p=thirdparty%2Flibtool.git * ltconfig.in (dlopen): Declare it as extern "C" in C++. --- diff --git a/ChangeLog b/ChangeLog index 72e0df814..60966ddb4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +1999-04-29 Ossama Othman + + * ltconfig.in (dlopen): Declare it as extern "C" in C++. + 1999-04-29 Gary V. Vaughan * libtool.m4 (cygwin*|mingw*, DLLTOOL, OBJDUMP, AS): Only expand the diff --git a/ltconfig.in b/ltconfig.in index 9418cd9d1..e54e1edd0 100755 --- a/ltconfig.in +++ b/ltconfig.in @@ -2070,6 +2070,9 @@ else which can conflict with char dlopen(); below. */ #include /* 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 dlopen();