• src/xptls/CMakeLists.txt

    From Deucе@1:103/705 to Git commit to main/sbbs/master on Monday, August 03, 2026 23:30:22
    https://gitlab.synchro.net/main/sbbs/-/commit/1e15986d748227287fef0127
    Modified Files:
    src/xptls/CMakeLists.txt
    Log Message:
    xptls: preserve MSVC atomics flags for C sources

    Visual Studio generators evaluate target-wide COMPILE_LANGUAGE
    expressions as C++ when a target contains any C++ sources. The Botan
    provider therefore caused the C-only atomics switches to disappear from xp_tls_credentials.c, leaving MSVC's C atomics support disabled.

    Apply the atomics enablement and __STDC_NO_ATOMICS__ override directly
    to each C source that includes <stdatomic.h>. This keeps the switches
    off C++ translation units while covering both Botan and OpenSSL builds.

    Co-Authored-By: OpenAI Codex <noreply@openai.com>
    --- SBBSecho 3.37-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)