From 63074d4a135f8d6f4e8bd8f30b8265ca4a3403bc Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Deuc=D0=B5?= <shurd@sasktel.net>
Date: Thu, 10 Feb 2022 20:01:06 -0500
Subject: [PATCH] The ole extern "C" trick eh?

---
 src/conio/utf8_codepages.h | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/conio/utf8_codepages.h b/src/conio/utf8_codepages.h
index 1cc36c5bca..96235f4fe9 100644
--- a/src/conio/utf8_codepages.h
+++ b/src/conio/utf8_codepages.h
@@ -42,6 +42,9 @@ struct codepage_def {
 	const uint32_t *cp_ext_unicode_table;
 };
 
+#ifdef __cplusplus
+extern "C" {
+#endif
 extern const struct codepage_def ciolib_cp[CIOLIB_CP_COUNT];
 
 uint8_t *cp_to_utf8(enum ciolib_codepage cp, const char *cpstr, size_t buflen, size_t *outlen);
@@ -49,5 +52,8 @@ char *utf8_to_cp(enum ciolib_codepage cp, const uint8_t *utf8str, char unmapped,
 uint8_t cpchar_from_unicode_cpoint(enum ciolib_codepage cp, uint32_t cpoint, char unmapped);
 uint32_t cpoint_from_cpchar(enum ciolib_codepage cp, uint8_t ch);
 uint32_t cpoint_from_cpchar_ext(enum ciolib_codepage cp, uint8_t ch);
+#ifdef __cplusplus
+}
+#endif
 
 #endif
-- 
GitLab