https://gitlab.synchro.net/main/sbbs/-/commit/45f7adaa05e0e6157bd73f09
Modified Files:
src/xptls/xp_tls_botan3.cpp
Log Message:
xp_tls_botan3: define NOMINMAX before sockwrap.h on Win32
The MQTT spy commit added <botan/tls_session.h>, whose Session
constructor uses std::chrono::seconds::max() as a default argument.
Win32's <windows.h> (pulled in transitively via sockwrap.h) defines
max as a macro, which mangles the default argument and produces a
cascade of MSVC parser errors starting at tls_session.h:254. Setting
NOMINMAX before the include chain keeps the macros out and lets the
chrono call parse normally.
Co-Authored-By: Claude Opus 4.7 (1M context) <
noreply@anthropic.com>
---
■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net