summaryrefslogtreecommitdiff
path: root/system/gettext-tiny/cpp-compat.patch
blob: e47c5969579c1216d01fb26efd3cbed386460dc7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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