• src/syncterm/wren_bind_fs.c

    From Deucе@VERT to Git commit to main/sbbs/master on Thursday, April 30, 2026 00:51:52
    https://gitlab.synchro.net/main/sbbs/-/commit/0ffa68636a445578a897c17d
    Modified Files:
    src/syncterm/wren_bind_fs.c
    Log Message:
    SyncTERM: drop POSIX stat from Wren fs binding (MSVC link fix)

    Directory.contains used stat() + S_ISREG to gate "is regular file";
    S_ISREG isn't defined on MSVC, so the Windows build linked with an
    unresolved external for _S_ISREG. Replace with the portable xpdev
    combo fexist() + !isdir().

    While here, swap the two struct-stat-for-size queries in File.size
    and file_map_for_hash for flength() — same cross-platform reasoning.

    Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

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