From 8b305a4c67b0ddab5c1133c6e0efce85c98c46c5 Mon Sep 17 00:00:00 2001 From: Feoramund <161657516+Feoramund@users.noreply.github.com> Date: Sat, 29 Jun 2024 18:03:32 -0400 Subject: Add `UCG` library to Odin compiler --- src/unicode.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/unicode.cpp') 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" +} -- cgit v1.2.3