aboutsummaryrefslogtreecommitdiff
path: root/src/unicode.cpp
diff options
context:
space:
mode:
authorFeoramund <161657516+Feoramund@users.noreply.github.com>2024-06-29 18:03:32 -0400
committerFeoramund <161657516+Feoramund@users.noreply.github.com>2024-06-29 18:42:56 -0400
commit8b305a4c67b0ddab5c1133c6e0efce85c98c46c5 (patch)
treed355d6cfb391b8c0ffc8256c6820bbcbfd1256bf /src/unicode.cpp
parentd4e2fa037797c026a1b7803f1514a87792af8888 (diff)
Add `UCG` library to Odin compiler
Diffstat (limited to 'src/unicode.cpp')
-rw-r--r--src/unicode.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/unicode.cpp b/src/unicode.cpp
index c244a323c..665d5b182 100644
--- a/src/unicode.cpp
+++ b/src/unicode.cpp
@@ -162,3 +162,8 @@ end:
if (codepoint_out) *codepoint_out = codepoint;
return width;
}
+
+// NOTE(Feoramund): It's down here because I made UCG use the utf8_decode above to avoid duplicating code.
+extern "C" {
+#include "ucg/ucg.c"
+}