]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
llama-mmap: fix missing include (#11796)
authorWilken Gottwalt <redacted>
Mon, 10 Feb 2025 18:58:18 +0000 (19:58 +0100)
committerGitHub <redacted>
Mon, 10 Feb 2025 18:58:18 +0000 (20:58 +0200)
Technically the fixed width types come only from iostream and
cstdint/stdint.h headers. memory and vector headers should not provide
these. In GCC 15 the headers are cleaned up and you require the proper
header cstdint.

src/llama-mmap.h:26:5: error: ‘uint32_t’ does not name a type
   26 |     uint32_t read_u32() const;
      |     ^~~~~~~~

src/llama-mmap.h

index 1da9ecb6b9812e4cbd69c2baac3fecbf4d136d20..4e5aec3f440d7005d254578e08124289c358054a 100644 (file)
@@ -1,5 +1,6 @@
 #pragma once
 
+#include <cstdint>
 #include <memory>
 #include <vector>