From: Bruno Haible Date: Wed, 1 Nov 2006 21:43:51 +0000 (+0000) Subject: Clean up libgettextpo exports in C++ mode. X-Git-Tag: v0.17~685 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=13fa5131b37c72af941c0f45c20fe643bee64651;p=thirdparty%2Fgettext.git Clean up libgettextpo exports in C++ mode. --- diff --git a/gettext-tools/src/ChangeLog b/gettext-tools/src/ChangeLog index 463c7a2f0..cee10c08c 100644 --- a/gettext-tools/src/ChangeLog +++ b/gettext-tools/src/ChangeLog @@ -1,3 +1,8 @@ +2006-10-29 Bruno Haible + + Clean up libgettextpo exports in C++ mode. + * po-gram.h: Wrap declarations in extern "C". + 2006-10-29 Bruno Haible Make it compile in C++ mode. diff --git a/gettext-tools/src/po-gram.h b/gettext-tools/src/po-gram.h index 2c0638bbc..f087929a6 100644 --- a/gettext-tools/src/po-gram.h +++ b/gettext-tools/src/po-gram.h @@ -1,5 +1,5 @@ /* GNU gettext - internationalization aids - Copyright (C) 1995, 2002-2003 Free Software Foundation, Inc. + Copyright (C) 1995, 2002-2003, 2006 Free Software Foundation, Inc. This file was written by Peter Miller @@ -20,6 +20,14 @@ #ifndef _PO_GRAM_H #define _PO_GRAM_H +#ifdef __cplusplus +extern "C" { +#endif + extern int po_gram_parse (void); +#ifdef __cplusplus +} +#endif + #endif diff --git a/gnulib-local/ChangeLog b/gnulib-local/ChangeLog index 1ddfb6bf0..ff6c4ac1d 100644 --- a/gnulib-local/ChangeLog +++ b/gnulib-local/ChangeLog @@ -1,3 +1,7 @@ +2006-10-29 Bruno Haible + + * lib/fstrcmp.h: Wrap declarations in extern "C". + 2006-10-29 Bruno Haible Make it compile in C++ mode. diff --git a/gnulib-local/lib/fstrcmp.h b/gnulib-local/lib/fstrcmp.h index e4dbe55c9..4671c55d0 100644 --- a/gnulib-local/lib/fstrcmp.h +++ b/gnulib-local/lib/fstrcmp.h @@ -1,5 +1,5 @@ /* Fuzzy string comparison. - Copyright (C) 1995, 2000, 2002-2003 Free Software Foundation, Inc. + Copyright (C) 1995, 2000, 2002-2003, 2006 Free Software Foundation, Inc. This file was written by Peter Miller @@ -20,8 +20,16 @@ Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef _FSTRCMP_H #define _FSTRCMP_H +#ifdef __cplusplus +extern "C" { +#endif + /* Fuzzy compare of S1 and S2. Return a measure for the similarity of S1 and S1. The higher the result, the more similar the strings are. */ extern double fstrcmp (const char *s1, const char *s2); +#ifdef __cplusplus +} +#endif + #endif