From: Bruno Haible Date: Thu, 4 Jul 2019 14:27:44 +0000 (+0200) Subject: build: Fix build errors with MSVC. X-Git-Tag: v0.20.2~61 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cd1eeb0dcb6f59f5c1135b212eb1527990378a7c;p=thirdparty%2Fgettext.git build: Fix build errors with MSVC. * gettext-tools/src/lang-table.h (language_table, language_variant_table): Declare with C linkage. * gettext-tools/src/read-po.h (input_format_po): Likewise. * gettext-tools/src/read-properties.h (input_format_properties): Likewise. * gettext-tools/src/read-stringtable.h (input_format_stringtable): Likewise. * gettext-tools/src/write-properties.h (output_format_properties): Likewise. * gettext-tools/src/write-stringtable.h (output_format_stringtable): Likewise. --- diff --git a/gettext-tools/src/lang-table.h b/gettext-tools/src/lang-table.h index 7ac197669..ebf193b98 100644 --- a/gettext-tools/src/lang-table.h +++ b/gettext-tools/src/lang-table.h @@ -1,5 +1,5 @@ /* Table of languages. - Copyright (C) 2001-2007 Free Software Foundation, Inc. + Copyright (C) 2001-2007, 2019 Free Software Foundation, Inc. Written by Bruno Haible , 2005. This program is free software: you can redistribute it and/or modify @@ -20,6 +20,12 @@ #include + +#ifdef __cplusplus +extern "C" { +#endif + + struct language_table_entry { const char *code; @@ -32,4 +38,10 @@ extern const size_t language_table_size; extern struct language_table_entry language_variant_table[]; extern const size_t language_variant_table_size; + +#ifdef __cplusplus +} +#endif + + #endif /* _LANG_TABLE_H */ diff --git a/gettext-tools/src/read-po.h b/gettext-tools/src/read-po.h index 6852a22a0..98fc893b2 100644 --- a/gettext-tools/src/read-po.h +++ b/gettext-tools/src/read-po.h @@ -1,5 +1,5 @@ /* Reading PO files. - Copyright (C) 2006 Free Software Foundation, Inc. + Copyright (C) 2006, 2019 Free Software Foundation, Inc. Written by Bruno Haible , 2006. This program is free software: you can redistribute it and/or modify @@ -20,7 +20,19 @@ #include "read-catalog-abstract.h" + +#ifdef __cplusplus +extern "C" { +#endif + + /* Describes a .po / .pot file parser. */ extern DLL_VARIABLE const struct catalog_input_format input_format_po; + +#ifdef __cplusplus +} +#endif + + #endif /* _READ_PO_H */ diff --git a/gettext-tools/src/read-properties.h b/gettext-tools/src/read-properties.h index e04abe524..9c299e6c2 100644 --- a/gettext-tools/src/read-properties.h +++ b/gettext-tools/src/read-properties.h @@ -1,5 +1,5 @@ /* Reading Java .properties files. - Copyright (C) 2003, 2006 Free Software Foundation, Inc. + Copyright (C) 2003, 2006, 2019 Free Software Foundation, Inc. Written by Bruno Haible , 2003. This program is free software: you can redistribute it and/or modify @@ -20,7 +20,19 @@ #include "read-catalog-abstract.h" + +#ifdef __cplusplus +extern "C" { +#endif + + /* Describes a .properties file parser. */ extern DLL_VARIABLE const struct catalog_input_format input_format_properties; + +#ifdef __cplusplus +} +#endif + + #endif /* _READ_PROPERTIES_H */ diff --git a/gettext-tools/src/read-stringtable.h b/gettext-tools/src/read-stringtable.h index 43d1ba505..4a107f2ff 100644 --- a/gettext-tools/src/read-stringtable.h +++ b/gettext-tools/src/read-stringtable.h @@ -1,5 +1,5 @@ /* Reading NeXTstep/GNUstep .strings files. - Copyright (C) 2003, 2006 Free Software Foundation, Inc. + Copyright (C) 2003, 2006, 2019 Free Software Foundation, Inc. Written by Bruno Haible , 2003. This program is free software: you can redistribute it and/or modify @@ -20,7 +20,19 @@ #include "read-catalog-abstract.h" + +#ifdef __cplusplus +extern "C" { +#endif + + /* Describes a .strings file parser. */ extern DLL_VARIABLE const struct catalog_input_format input_format_stringtable; + +#ifdef __cplusplus +} +#endif + + #endif /* _READ_STRINGTABLE_H */ diff --git a/gettext-tools/src/write-properties.h b/gettext-tools/src/write-properties.h index f0d18a7e4..7671afb30 100644 --- a/gettext-tools/src/write-properties.h +++ b/gettext-tools/src/write-properties.h @@ -1,5 +1,5 @@ /* Writing Java .properties files. - Copyright (C) 2003, 2006 Free Software Foundation, Inc. + Copyright (C) 2003, 2006, 2019 Free Software Foundation, Inc. Written by Bruno Haible , 2003. This program is free software: you can redistribute it and/or modify @@ -20,7 +20,19 @@ #include "write-catalog.h" + +#ifdef __cplusplus +extern "C" { +#endif + + /* Describes a PO file in Java .properties syntax. */ extern DLL_VARIABLE const struct catalog_output_format output_format_properties; + +#ifdef __cplusplus +} +#endif + + #endif /* _WRITE_PROPERTIES_H */ diff --git a/gettext-tools/src/write-stringtable.h b/gettext-tools/src/write-stringtable.h index 7d4981826..af0b081c8 100644 --- a/gettext-tools/src/write-stringtable.h +++ b/gettext-tools/src/write-stringtable.h @@ -1,5 +1,5 @@ /* Writing NeXTstep/GNUstep .strings files. - Copyright (C) 2003, 2006 Free Software Foundation, Inc. + Copyright (C) 2003, 2006, 2019 Free Software Foundation, Inc. Written by Bruno Haible , 2003. This program is free software: you can redistribute it and/or modify @@ -20,7 +20,19 @@ #include "write-catalog.h" + +#ifdef __cplusplus +extern "C" { +#endif + + /* Describes a PO file in .strings syntax. */ extern DLL_VARIABLE const struct catalog_output_format output_format_stringtable; + +#ifdef __cplusplus +} +#endif + + #endif /* _WRITE_STRINGTABLE_H */