]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Don't name mangle exported symbols in C++ mode.
authorBruno Haible <bruno@clisp.org>
Wed, 1 Nov 2006 21:42:48 +0000 (21:42 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 23 Jun 2009 10:14:18 +0000 (12:14 +0200)
gettext-tools/libgettextpo/ChangeLog
gettext-tools/libgettextpo/gettext-po.c

index 0cbb5369c0dc63b75a4a79dc351278b086d81b88..dc0e3529d21017192210f01b4eda2ac295f2dd42 100644 (file)
@@ -1,3 +1,9 @@
+2006-10-29  Bruno Haible  <bruno@clisp.org>
+
+       Don't name mangle exported symbols in C++ mode.
+       * gettext-po.c (po_file_read_v2, po_file_read, po_file_write,
+       po_message_check_format) [C++]: Declare as extern "C".
+
 2006-10-29  Bruno Haible  <bruno@clisp.org>
 
        * gettext-po.h.in (po_message_prev_msgctxt, po_message_set_prev_msgctxt,
index 0dc287914338b3000d1652d04e0f9d62a9ac4598..2a139aef96fe78e71bfef57b18e5ffbb05524766 100644 (file)
@@ -137,6 +137,9 @@ po_file_read (const char *filename, po_xerror_handler_t handler)
 }
 #undef po_file_read
 
+#ifdef __cplusplus
+extern "C" po_file_t po_file_read_v2 (const char *filename, po_error_handler_t handler);
+#endif
 po_file_t
 po_file_read_v2 (const char *filename, po_error_handler_t handler)
 {
@@ -182,6 +185,9 @@ po_file_read_v2 (const char *filename, po_error_handler_t handler)
 }
 
 /* Older version for binary backward compatibility.  */
+#ifdef __cplusplus
+extern "C" po_file_t po_file_read (const char *filename);
+#endif
 po_file_t
 po_file_read (const char *filename)
 {
@@ -238,6 +244,9 @@ po_file_write (po_file_t file, const char *filename, po_xerror_handler_t handler
 #undef po_file_write
 
 /* Older version for binary backward compatibility.  */
+#ifdef __cplusplus
+extern "C" po_file_t po_file_write (po_file_t file, const char *filename, po_error_handler_t handler);
+#endif
 po_file_t
 po_file_write (po_file_t file, const char *filename, po_error_handler_t handler)
 {
@@ -1246,6 +1255,9 @@ po_error_logger (const char *format, ...)
 /* Test whether the message translation is a valid format string if the message
    is marked as being a format string.  If it is invalid, pass the reasons to
    the handler.  */
+#ifdef __cplusplus
+extern "C" void po_message_check_format (po_message_t message, po_error_handler_t handler);
+#endif
 void
 po_message_check_format (po_message_t message, po_error_handler_t handler)
 {