]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commitdiff
ggml : include stdlib.h before intrin.h (llama/4736)
authorGeorgi Gerganov <redacted>
Thu, 4 Jan 2024 08:12:26 +0000 (10:12 +0200)
committerGeorgi Gerganov <redacted>
Thu, 11 Jan 2024 19:49:59 +0000 (21:49 +0200)
ggml-impl.h

index 1f5610a86cfd9e8347952dbf415a176f1fd23baf..2faced08059ed2dd1abaf5e19864b76aa4ddb779 100644 (file)
@@ -5,6 +5,7 @@
 // GGML internal header
 
 #include <assert.h>
+#include <stdlib.h> // load `stdlib.h` before other headers to work around MinGW bug: https://sourceforge.net/p/mingw-w64/bugs/192/
 #include <stddef.h>
 #include <stdbool.h>
 #include <string.h> // memcpy