Fix windows build
This commit is contained in:
parent
c150e1b0c3
commit
fc89916002
1 changed files with 1 additions and 1 deletions
|
@ -196,7 +196,7 @@ struct llama_mmap {
|
||||||
#elif defined(_WIN32)
|
#elif defined(_WIN32)
|
||||||
static constexpr bool SUPPORTED = true;
|
static constexpr bool SUPPORTED = true;
|
||||||
|
|
||||||
llama_mmap(struct llama_file * file) {
|
llama_mmap(struct llama_file * file, bool prefetch = true) {
|
||||||
size = file->size;
|
size = file->size;
|
||||||
|
|
||||||
HANDLE hFile = (HANDLE) _get_osfhandle(_fileno(file->fp));
|
HANDLE hFile = (HANDLE) _get_osfhandle(_fileno(file->fp));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue