gguf_reader.hpp: define NOMINMAX before windows.h

This commit is contained in:
Guillaume PUTIER authored and Niko1221 committed 2026-09-30 11:45:44 +02:00
1 parent c9d3fd6877
commit 255bf03d3e
1 file changed
+3
+3
View File
@@ -32,6 +32,9 @@
#ifdef _WIN32
#define WIN32_LEAN_AND_MEAN
#ifndef NOMINMAX
#define NOMINMAX // windows.h's min/max macros would break std::min/std::max in every file that includes this one
#endif
#include <windows.h>
#else
#include <fcntl.h>