Spaces:
Sleeping
Sleeping
ggml : make compatible with c99 (#262)
Browse files
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__)
|