+60
−16
Loading
serverconfig.cpp wrote config files with POSIX open/write/fsync/
fchmod/chown/rename/unlink and <unistd.h>, which do not exist on
Windows. Route them through small file* wrappers: POSIX keeps the
old calls; on Windows _open/_write/_commit/_close/_unlink are used,
chmod/chown are no-ops, and rename becomes MoveFileEx with
MOVEFILE_REPLACE_EXISTING because rename() fails on an existing
target there.
editorconfig.cpp: isDir() uses std::filesystem instead of stat/S_ISDIR.
The Windows wrappers were built with MinGW and run under wine
(write, replace over an existing file, unlink).
Co-Authored-By:
Claude Opus 5.5 <noreply@anthropic.com>