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++

metal: ds4_os.hpp takes the macOS shim at the top of the file, not inside the Windows block

Niko1221bb60de0e8ebd
diff --git a/src/dsv41/ds4_os.hpp b/src/dsv41/ds4_os.hpp
index e339ddb34..0038ff618 100644
--- a/src/dsv41/ds4_os.hpp
+++ b/src/dsv41/ds4_os.hpp
@@ -6,6 +6,10 @@
// does it for GLM: no FILE_FLAG_RANDOM_ACCESS - the page cache must keep what it read.)
#pragma once
+#if defined(__APPLE__)
+#include "ds4_os_apple.h" // the Linux calls the body uses, on macOS
+#endif
+
#include <algorithm>
#include <cstdint>
#include <cstdio>
@@ -18,9 +22,6 @@
#if defined(_WIN32)
#define WIN32_LEAN_AND_MEAN
#ifndef NOMINMAX
-#if defined(__APPLE__)
-#include "ds4_os_apple.h" // the Linux calls below, on macOS
-#endif
#define NOMINMAX
#endif
#include <windows.h>