summaryrefslogtreecommitdiff
path: root/system/gettext-tiny/cpp-compat.patch
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-06-21 19:56:55 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-06-22 00:41:37 -0500
commit3a90a9469a33579c60320149a882aa8157814bfe (patch)
treef8f2c1447f0d1bba7726c5e39a2ca1e7c0be46f7 /system/gettext-tiny/cpp-compat.patch
parent1f1a1b12c8d5e8b5b6fbe66c62bde03f5932eaa5 (diff)
downloadpackages-3a90a9469a33579c60320149a882aa8157814bfe.tar.gz
packages-3a90a9469a33579c60320149a882aa8157814bfe.tar.bz2
packages-3a90a9469a33579c60320149a882aa8157814bfe.tar.xz
packages-3a90a9469a33579c60320149a882aa8157814bfe.zip
system/gettext-tiny: support C++
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