From: Georgi Gerganov Date: Tue, 13 Dec 2022 21:07:49 +0000 (+0200) Subject: ggml : make compatible with c99 (#262) X-Git-Tag: upstream/1.7.4~1721 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=9955fa4ed7cc694d5d47fe0bb5f0d02066f9cbac;p=pkg%2Fggml%2Fsources%2Fwhisper.cpp ggml : make compatible with c99 (#262) --- diff --git a/ggml.c b/ggml.c index 24926ff7..08c2a174 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__)