From 9955fa4ed7cc694d5d47fe0bb5f0d02066f9cbac Mon Sep 17 00:00:00 2001 From: Georgi Gerganov Date: Tue, 13 Dec 2022 23:07:49 +0200 Subject: [PATCH] ggml : make compatible with c99 (#262) --- ggml.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ggml.c b/ggml.c index 24926ff..08c2a17 100644 --- a/ggml.c +++ b/ggml.c @@ -14,6 +14,11 @@ #include #include +// if C99 - static_assert is nop +#ifndef static_assert +#define static_assert(cond, msg) +#endif + #if defined _MSC_VER || defined(__MINGW32__) #if !defined(__MINGW32__)