ggerganov commited on
Commit
d9c1974
·
unverified ·
1 Parent(s): de68a7e

ggml : make compatible with c99 (#262)

Browse files
Files changed (1) hide show
  1. ggml.c +5 -0
ggml.c CHANGED
@@ -14,6 +14,11 @@
14
  #include <stdint.h>
15
  #include <stdio.h>
16
 
 
 
 
 
 
17
  #if defined _MSC_VER || defined(__MINGW32__)
18
 
19
  #if !defined(__MINGW32__)
 
14
  #include <stdint.h>
15
  #include <stdio.h>
16
 
17
+ // if C99 - static_assert is nop
18
+ #ifndef static_assert
19
+ #define static_assert(cond, msg)
20
+ #endif
21
+
22
  #if defined _MSC_VER || defined(__MINGW32__)
23
 
24
  #if !defined(__MINGW32__)