blob: 2a08327eaaeb9070e561d19dd64be6a32615338c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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_ */
|