]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commitdiff
ggml : make compatible with c99 (#262)
authorGeorgi Gerganov <redacted>
Tue, 13 Dec 2022 21:07:49 +0000 (23:07 +0200)
committerGeorgi Gerganov <redacted>
Tue, 13 Dec 2022 21:07:49 +0000 (23:07 +0200)
ggml.c

diff --git a/ggml.c b/ggml.c
index 24926ff7343f3d9454ae16bedb9763b0afcfe97e..08c2a174e7370dece9f1da405a3e2ca17a64a5eb 100644 (file)
--- a/ggml.c
+++ b/ggml.c
 #include <stdint.h>
 #include <stdio.h>
 
+// if C99 - static_assert is nop
+#ifndef static_assert
+#define static_assert(cond, msg)
+#endif
+
 #if defined _MSC_VER || defined(__MINGW32__)
 
 #if !defined(__MINGW32__)