feat: implement and export Windows CRT stat32i64 and stat64i32

feat: implement and export Windows CRT stat32i64 and stat64i32

When transpiling SQLite 3.53.0 and its test harnesses (testfixture) for Windows targets (windows/amd64, windows/386, windows/arm64) using ccgo, SQLite's Windows VFS (os_win.c) references the MSVC/MinGW C runtime stat variants _stat32i64, __stat32i64, and __stat64i32.

Previously, modernc.org/libc did not export these symbols, causing code generation and Go builds to fail with undefined symbol errors:

  • undefined: libc.X_stat32i64
  • undefined: libc.X__stat32i64
  • undefined: libc.X__stat64i32

This change implements X_stat32i64, X__stat32i64, and X__stat64i32 in libc_windows.go (routing to the underlying 64-bit stat implementation) and exports them across capi_windows_386.go, capi_windows_amd64.go, and capi_windows_arm64.go, allowing SQLite 3.53.0 and Windows test fixtures to link and generate successfully.

Related to SQLite issue: sqlite#255 (closed)

Merge request reports

Loading
Loading