]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
build: Fix build errors with MSVC.
authorBruno Haible <bruno@clisp.org>
Thu, 4 Jul 2019 14:27:44 +0000 (16:27 +0200)
committerBruno Haible <bruno@clisp.org>
Mon, 13 Apr 2020 10:52:18 +0000 (12:52 +0200)
* 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.

gettext-tools/src/lang-table.h
gettext-tools/src/read-po.h
gettext-tools/src/read-properties.h
gettext-tools/src/read-stringtable.h
gettext-tools/src/write-properties.h
gettext-tools/src/write-stringtable.h

index 7ac197669682e39c980994481d5ff78afac5c4a2..ebf193b9816fc7c2c71431b99549ec8db12e814f 100644 (file)
@@ -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 <haible@clisp.cons.org>, 2005.
 
    This program is free software: you can redistribute it and/or modify
 
 #include <stddef.h>
 
+
+#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 */
index 6852a22a0d6eed7ff0a64e3c4026e322d9743c84..98fc893b226c6dc93713bd0e8074554a84c35908 100644 (file)
@@ -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 <bruno@clisp.org>, 2006.
 
    This program is free software: you can redistribute it and/or modify
 
 #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 */
index e04abe524a250e8b32cf0338cec69ac3278e7129..9c299e6c2ea140807181a982e57924723ed9ecc5 100644 (file)
@@ -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 <bruno@clisp.org>, 2003.
 
    This program is free software: you can redistribute it and/or modify
 
 #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 */
index 43d1ba5052062ef895e6e758877f3e62b05f7176..4a107f2ff3ffeb2f178292bbfe0041bba5097d5f 100644 (file)
@@ -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 <bruno@clisp.org>, 2003.
 
    This program is free software: you can redistribute it and/or modify
 
 #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 */
index f0d18a7e43356daf9e99561fac54dec960eb505a..7671afb30f94fa74f7a949439f03b27b3ed8c78a 100644 (file)
@@ -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 <bruno@clisp.org>, 2003.
 
    This program is free software: you can redistribute it and/or modify
 
 #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 */
index 7d49818269c2ab7b9ee3f8567222fc25b12aa8e1..af0b081c87a516377b22e8246ffb1ccbcc867d50 100644 (file)
@@ -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 <bruno@clisp.org>, 2003.
 
    This program is free software: you can redistribute it and/or modify
 
 #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 */