From: Georgi Gerganov Date: Sun, 25 Jun 2023 13:38:17 +0000 (+0300) Subject: ggml : remove _GNU_SOURCE X-Git-Tag: upstream/0.0.1642~1377 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=00c40aa5b0fe2e5af62ef17a538a3257110763f9;p=pkg%2Fggml%2Fsources%2Fggml ggml : remove _GNU_SOURCE ref : https://github.com/ggerganov/whisper.cpp/pull/1027 --- diff --git a/scripts/sync-whisper.sh b/scripts/sync-whisper.sh index 6359f4bb..1c74859b 100755 --- a/scripts/sync-whisper.sh +++ b/scripts/sync-whisper.sh @@ -5,6 +5,9 @@ cp -rpv ../whisper.cpp/ggml-cuda.h src/ggml-cuda.h cp -rpv ../whisper.cpp/ggml-cuda.cu src/ggml-cuda.cu cp -rpv ../whisper.cpp/ggml-opencl.h src/ggml-opencl.h cp -rpv ../whisper.cpp/ggml-opencl.cpp src/ggml-opencl.cpp +cp -rpv ../whisper.cpp/ggml-metal.h src/ggml-metal.h +cp -rpv ../whisper.cpp/ggml-metal.m src/ggml-metal.m +cp -rpv ../whisper.cpp/ggml-metal.metal src/ggml-metal.metal cp -rpv ../whisper.cpp/ggml.h include/ggml/ggml.h cp -rpv ../whisper.cpp/examples/common.h examples/common.h cp -rpv ../whisper.cpp/examples/common.cpp examples/common.cpp diff --git a/src/ggml.c b/src/ggml.c index af229475..2a5c469e 100644 --- a/src/ggml.c +++ b/src/ggml.c @@ -1,4 +1,3 @@ -#define _GNU_SOURCE // Defines CLOCK_MONOTONIC on Linux #define _CRT_SECURE_NO_DEPRECATE // Disables ridiculous "unsafe" warnigns on Windows #include "ggml.h"