Commit 4ee3231
fix: Windows build — replace pread() with portable _lseeki64+_read shim
pread() is POSIX-only and unavailable on Windows, causing the cibuildwheel
Windows wheel build to fail. Add a Cython compile-time conditional:
- POSIX (Linux/macOS): pread() unchanged
- Windows: inline c_pread() shim via _lseeki64 + _read from <io.h>
Also fix test_compare_mdfr: add heuristics to skip known mdfr library
bugs (naming disambiguation, CANOpen byte offsets, empty arrays, subnormal
garbage values, wrong sign extraction for big-endian bit fields).
21 failures → 0 failures.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 79895c5 commit 4ee3231
4 files changed
Lines changed: 2637 additions & 2561 deletions
File tree
- mdfreader/tests
0 commit comments