Sfoglia il codice sorgente

ggml : include stdlib.h before intrin.h (#4736)

Georgi Gerganov 2 anni fa
parent
commit
dc891b7f7a
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1 0
      ggml-impl.h

+ 1 - 0
ggml-impl.h

@@ -5,6 +5,7 @@
 // GGML internal header
 // GGML internal header
 
 
 #include <assert.h>
 #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 <stddef.h>
 #include <stdbool.h>
 #include <stdbool.h>
 #include <string.h> // memcpy
 #include <string.h> // memcpy