Skip to content

Commit 9794052

Browse files
authored
fix: add POSIX functionality for Linux compilation (#51)
* fix: add POSIX functionality for Linux compilation * fix: older standard for compatibility
1 parent 305ba6f commit 9794052

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ggml.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Defines CLOCK_MONOTONIC on Linux
2+
#define _POSIX_C_SOURCE 199309L
3+
14
#include "ggml.h"
25

36
#if defined(_MSC_VER) || defined(__MINGW32__)

0 commit comments

Comments
 (0)