Files
codebase-memory-mcp/src
Martin Vogel d30bccd772 fix(compat): include stdlib.h so getenv/_putenv_s compile on native ARM64 Windows
compat.h calls getenv (cbm_tmpdir) and _putenv_s (cbm_setenv/cbm_unsetenv) but
only included stddef.h and stdio.h. The x86-64 mingw toolchain pulled stdlib.h
in transitively, so it built there, but the aarch64 (CLANGARM64) include chain
does not — the calls became implicit declarations that conflict with the real
stdlib.h getenv type and fail to compile on native ARM64 Windows. Include
stdlib.h directly so the declarations are correct on every toolchain.

Signed-off-by: Martin Vogel <martin.vogel.tech@gmail.com>
2026-06-28 14:59:25 +02:00
..