aboutsummaryrefslogtreecommitdiffstats
path: root/community/figlet/musl-fix-cplusplus-decls.patch
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2020-04-08 19:23:45 -0300
committerLeo <thinkabit.ukim@gmail.com>2020-04-08 23:57:32 +0000
commit0c6368bdcff0c951820df798ed9cd0c7df34c12f (patch)
treef5b896cac1412085c8c42d45b33f65fdfc3541f9 /community/figlet/musl-fix-cplusplus-decls.patch
parentaa54f509c7d7bb6c419f1a5666810409cb42c6e9 (diff)
downloadaports-0c6368bdcff0c951820df798ed9cd0c7df34c12f.tar.bz2
aports-0c6368bdcff0c951820df798ed9cd0c7df34c12f.tar.xz
community/figlet: move from main
Diffstat (limited to 'community/figlet/musl-fix-cplusplus-decls.patch')
-rw-r--r--community/figlet/musl-fix-cplusplus-decls.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/community/figlet/musl-fix-cplusplus-decls.patch b/community/figlet/musl-fix-cplusplus-decls.patch
new file mode 100644
index 0000000000..2a08327eaa
--- /dev/null
+++ b/community/figlet/musl-fix-cplusplus-decls.patch
@@ -0,0 +1,22 @@
+--- figlet-2.2.5.orig/utf8.h
++++ figlet-2.2.5/utf8.h
+@@ -27,13 +27,17 @@
+ #define UTF8_IGNORE_ERROR 0x01
+ #define UTF8_SKIP_BOM 0x02
+
+-__BEGIN_DECLS
++#ifdef __cplusplus
++extern "C" {
++#endif
+
+ size_t utf8_to_wchar(const char *in, size_t insize, wchar_t *out,
+ size_t outsize, int flags);
+ size_t wchar_to_utf8(const wchar_t *in, size_t insize, char *out,
+ size_t outsize, int flags);
+
+-__END_DECLS
++#ifdef __cplusplus
++}
++#endif
+
+ #endif /* !_UTF8_H_ */