summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorgi Gerganov <ggerganov@gmail.com>2024-01-04 10:12:26 +0200
committerGitHub <noreply@github.com>2024-01-04 10:12:26 +0200
commitdc891b7f7a23158d54f9383790b92c79cc5906c1 (patch)
treeb2ff4a7df0744ac1e26678d3eb8828a2d72f69e6
parent46cea79e1f32499bb24b9fab12123cd386e96728 (diff)
ggml : include stdlib.h before intrin.h (#4736)
-rw-r--r--ggml-impl.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/ggml-impl.h b/ggml-impl.h
index 1f5610a8..2faced08 100644
--- a/ggml-impl.h
+++ b/ggml-impl.h
@@ -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