summaryrefslogtreecommitdiff
path: root/system/gettext-tiny/cpp-compat.patch
diff options
context:
space:
mode:
Diffstat (limited to 'system/gettext-tiny/cpp-compat.patch')
-rw-r--r--system/gettext-tiny/cpp-compat.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/system/gettext-tiny/cpp-compat.patch b/system/gettext-tiny/cpp-compat.patch
new file mode 100644
index 000000000..e47c59695
--- /dev/null
+++ b/system/gettext-tiny/cpp-compat.patch
@@ -0,0 +1,22 @@
+--- gettext-tiny-0.3.0_pre1/include/libintl.h.old 2018-06-21 19:55:29.646162973 -0500
++++ gettext-tiny-0.3.0_pre1/include/libintl.h 2018-06-21 19:56:16.886116203 -0500
+@@ -1,6 +1,9 @@
+ #ifndef LIBINTL_H
+ #define LIBINTL_H
+
++#ifdef __cplusplus
++extern "C" {
++#endif
+ char *gettext(const char *msgid);
+ char *dgettext(const char *domainname, const char *msgid);
+ char *dcgettext(const char *domainname, const char *msgid, int category);
+@@ -11,6 +14,9 @@
+ char *textdomain(const char *domainname);
+ char *bind_textdomain_codeset(const char *domainname, const char *codeset);
+ char *bindtextdomain(const char *domainname, const char *dirname);
++#ifdef __cplusplus
++}
++#endif
+
+ #undef gettext_noop
+ #define gettext_noop(X) X