fix compilation on haiku

This commit is contained in:
Al Hoang
2022-12-08 05:34:19 +00:00
committed by Georgi Gerganov
parent 47afb93c3c
commit 04a16bbf11
2 changed files with 25 additions and 0 deletions

4
ggml.c
View File

@ -69,6 +69,10 @@ static int sched_yield (void) {
typedef void* thread_ret_t;
#endif
#ifdef __HAIKU__
#define static_assert(cond, msg) _Static_assert(cond, msg)
#endif
#define GGML_DEBUG 0
#define GGML_GELU_FP16