summaryrefslogtreecommitdiff
path: root/user/figlet/musl-fix-cplusplus-decls.patch
diff options
context:
space:
mode:
authorDan Theisen <djt@hxx.in>2018-09-01 18:30:45 -0700
committerDan Theisen <djt@hxx.in>2018-09-01 18:30:45 -0700
commit0561bf1045467f95e2fcffd7e2b5bbdd82c7c81f (patch)
tree4c4c11d95dc3dedc9ce13dc34955751fb9bdd41b /user/figlet/musl-fix-cplusplus-decls.patch
parent337e02c6d05938e555aa2f69ca653dabc251e6ff (diff)
downloadpackages-0561bf1045467f95e2fcffd7e2b5bbdd82c7c81f.tar.gz
packages-0561bf1045467f95e2fcffd7e2b5bbdd82c7c81f.tar.bz2
packages-0561bf1045467f95e2fcffd7e2b5bbdd82c7c81f.tar.xz
packages-0561bf1045467f95e2fcffd7e2b5bbdd82c7c81f.zip
user/figlet: new package, fixed up from alpine
Diffstat (limited to 'user/figlet/musl-fix-cplusplus-decls.patch')
-rw-r--r--user/figlet/musl-fix-cplusplus-decls.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/user/figlet/musl-fix-cplusplus-decls.patch b/user/figlet/musl-fix-cplusplus-decls.patch
new file mode 100644
index 000000000..2a08327ea
--- /dev/null
+++ b/user/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_ */