From bbfd39382eeed9cafe6983f4c6f373555892033c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kamil=20Tom=C5=A1=C3=ADk?= Date: Mon, 14 Aug 2023 13:20:31 +0200 Subject: [PATCH] Zig @cImport("llama.h") requires enum keyword in function signatures --- llama.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llama.h b/llama.h index d237bcc54..92b474891 100644 --- a/llama.h +++ b/llama.h @@ -97,7 +97,7 @@ extern "C" { // If your logging mechanism cannot handle that, check if the last character is '\n' and strip it // if it exists. // It might not exist for progress report where '.' is output repeatedly. - typedef void (*llama_log_callback)(llama_log_level level, const char * text, void * user_data); + typedef void (*llama_log_callback)(enum llama_log_level level, const char * text, void * user_data); struct llama_context_params { uint32_t seed; // RNG seed, -1 for random