+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,
}
#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)
{
}
/* 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)
{
#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)
{
/* 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)
{