diff --git a/src/llama-model-loader.cpp b/src/llama-model-loader.cpp index 57d20285..91576461 100644 --- a/src/llama-model-loader.cpp +++ b/src/llama-model-loader.cpp @@ -21,6 +21,18 @@ #include #include +#if defined(_WIN32) + #define WIN32_LEAN_AND_MEAN + #ifndef NOMINMAX + #define NOMINMAX + #endif + #include + #ifndef PATH_MAX + #define PATH_MAX MAX_PATH + #endif + #include +#endif + #define LLAMA_API_INTERNAL namespace GGUFMeta {