Skip to content

Commit

Permalink
llama-mmap: fix missing include (#11796)
Browse files Browse the repository at this point in the history
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;
      |     ^~~~~~~~
  • Loading branch information
wgottwalt authored Feb 10, 2025
1 parent 0893e01 commit 19b392d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/llama-mmap.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#pragma once

#include <cstdint>
#include <memory>
#include <vector>

Expand Down

0 comments on commit 19b392d

Please sign in to comment.