diff --git a/src/llama-quantize.cpp b/src/llama-quantize.cpp index 77aa56a3..fa08ba41 100644 --- a/src/llama-quantize.cpp +++ b/src/llama-quantize.cpp @@ -20,6 +20,18 @@ #define QK_K 256 #define QK_IQ1BN 64 +#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 + static void zeros(std::ofstream & file, size_t n) { char zero = 0; for (size_t i = 0; i < n; ++i) {