@@ -6,7 +6,7 @@ when ODIN_OS == .Windows {
}
} else {
foreign import lib {
- "kb_text_shape.a",
+ "lib/kb_text_shape.a",
@@ -0,0 +1,7 @@
+#!/bin/sh
+set -e
+
+mkdir -p "../lib"
+cc -O2 -c kb_text_shape.c
+ar -rcs ../lib/kb_text_shape.a kb_text_shape.o
+rm *.o
@@ -1,4 +1,7 @@
#include <stdint.h>
+#ifndef _MSC_VER
+ #include <string.h>
+#endif
#define KB_TEXT_SHAPE_NO_CRT
#define KB_TEXT_SHAPE_IMPLEMENTATION