• src/syncterm/CMakeLists.txt

    From Deucе@VERT to Git commit to main/sbbs/master on Fri Jul 24 00:05:35 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/d790b6569203929880f2c2e5
    Modified Files:
    src/syncterm/CMakeLists.txt
    Log Message:
    Preserve the theme test main entry point

    theme_test inherits WITH_SDL_AUDIO from xpdev, which causes gen_defs.h
    to include SDL.h. On Windows, SDL then replaces main with SDL_main,
    leaving the CMake-generated console target without the entry point that
    the MSVC runtime expects.

    Define SDL_MAIN_HANDLED privately for theme_test so SDL leaves its entry
    point alone. Verify the target with a Windows cross-build and run the
    native SyncTERM test suite.

    Co-authored-by: OpenAI Codex <[email protected]>

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on Debian Linux)@VERT to Git commit to main/sbbs/master on Fri Jul 24 00:10:51 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/bddf00e4dab139cb5d89eb1a
    Modified Files:
    src/syncterm/CMakeLists.txt
    Log Message:
    Merge branch 'master' of gitlab.synchro.net:main/sbbs

    ---
    � Synchronet � Vertrauen � Home of Synchronet � [vert/cvs/bbs].synchro.net
  • From Deucе@VERT to Git commit to main/sbbs/master on Fri Jul 24 14:21:23 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/4c3c4eb84359dfb3cc6da460
    Modified Files:
    src/syncterm/CMakeLists.txt
    Log Message:
    Fix MSVC entry points for xpdev-backed tests

    xmodem_cancel_test and conn_buffer_test inherit WITH_SDL_AUDIO from
    xpdev, which causes SDL to remap main on Windows. Define
    SDL_MAIN_HANDLED privately so the generated console projects retain the
    entry point expected by MSVCRT.

    Co-authored-by: OpenAI Codex <[email protected]>

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net