Skip to content

Qwen3.8-Flash-Next on any consumer hardware: one-click install for Windows / Linux. Strata inference engine, OpenAI/Anthropic API on localhost, optional image input.

C++

gguf_reader.hpp: define NOMINMAX before windows.h

Guillaume PUTIER255bf03d3ec4
diff --git a/include/strata/artifact/gguf_reader.hpp b/include/strata/artifact/gguf_reader.hpp
index b7f359100..ee76f3c0a 100644
--- a/include/strata/artifact/gguf_reader.hpp
+++ b/include/strata/artifact/gguf_reader.hpp
@@ -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>