From ee721be496f849764b317c9c82f8eda5f417546a Mon Sep 17 00:00:00 2001 From: bptato Date: Sat, 15 Jul 2023 22:29:16 +0200 Subject: Include libunicode header in binding --- src/bindings/libunicode.nim | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/bindings/libunicode.nim b/src/bindings/libunicode.nim index d53fa060..84163a7e 100644 --- a/src/bindings/libunicode.nim +++ b/src/bindings/libunicode.nim @@ -11,6 +11,10 @@ type UnicodeNormalizationEnum* {.size: sizeof(cint).} = enum UNICODE_NFC, UNICODE_NFD, UNICODE_NKFC, UNICODE_NKFD +{.passC: "-Ilib/".} + +{.push header: "quickjs/libunicode.h", importc.} + proc cr_init*(cr: ptr CharRange, mem_opaque: pointer, realloc_func: DynBufReallocFunc) {.importc.} @@ -21,3 +25,4 @@ proc unicode_normalize*(pdst: ptr ptr uint32, src: ptr uint32, src_len: cint, realloc_func: DynBufReallocFunc): cint {.importc.} proc unicode_general_category*(cr: ptr CharRange, gc_name: cstring): cint {.importc.} +{.pop.} -- cgit 1.4.1-2-gfad0