Fix windows build

This commit is contained in:
Slaren 2023-04-15 19:54:56 +02:00
parent c150e1b0c3
commit fc89916002

View file

@ -196,7 +196,7 @@ struct llama_mmap {
#elif defined(_WIN32)
static constexpr bool SUPPORTED = true;
llama_mmap(struct llama_file * file) {
llama_mmap(struct llama_file * file, bool prefetch = true) {
size = file->size;
HANDLE hFile = (HANDLE) _get_osfhandle(_fileno(file->fp));