Explorar el Código

fix: add POSIX functionality for Linux compilation (#51)

* fix: add POSIX functionality for Linux compilation

* fix: older standard for compatibility
Valentyn Bezshapkin hace 2 años
padre
commit
97940520e8
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  1. 3 0
      ggml.c

+ 3 - 0
ggml.c

@@ -1,3 +1,6 @@
+// Defines CLOCK_MONOTONIC on Linux
+#define _POSIX_C_SOURCE 199309L
+
 #include "ggml.h"
 
 #if defined(_MSC_VER) || defined(__MINGW32__)