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

* fix: add POSIX functionality for Linux compilation

* fix: older standard for compatibility
This commit is contained in:
Valentyn Bezshapkin 2023-03-22 18:20:25 +01:00 committed by GitHub
parent 305ba6f0e6
commit 97940520e8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

3
ggml.c
View file

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