mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-04 07:18:50 +00:00
engine/src/program/generate.cpp has `const int64_t small = old_rule();` (and two more). Without WIN32_LEAN_AND_MEAN, <windows.h> pulls in <rpc.h> / <rpcndr.h>, which
define `small`. In 0.2.15 the first <windows.h> of that translation unit came through gguf_reader.hpp, which defines the lean macro; now conversation_spill.hpp (line 38)
and platform/commit.hpp (line 18) reach it first and define only NOMINMAX. Each include below now gets, next to NOMINMAX, the guarded
`#ifndef WIN32_LEAN_AND_MEAN / #define WIN32_LEAN_AND_MEAN / #endif` (inside the same `#if defined(_WIN32)` block, so a Linux build never sees it): include/strata/core/
conversation_spill.hpp, include/strata/platform/commit.hpp; src/core/{conversation_memory, conversation_memory_test, device_main, pinned.cu, pinned_alias_test,
pinned_shared_win_test, verify}; src/program/generate.cpp; sycl/include/{dpct/device, dpct/kernel, dpct/memory, strata/runtime_files}.hpp, sycl/src/core/{copy_queue, pinned.dp}.cpp,
sycl/src/program/generate.cpp; tests/platform/io_priority_test.cpp (18 includes; the other 25 sites already define it earlier in their file). None of these files uses an API the
lean macro leaves out (winsock, shell, RPC / OLE, multimedia): checked by grep. Not covered: the SYCL Windows build also takes dpct/bindless_images.hpp (d3d11.h, which
reaches rpcndr.h by itself), and sycl/src/program/generate.cpp has the same `small` name; no Windows SYCL package is built in 0.2.16 (the release assets are Linux SYCL).