prjxray/lib
Carlos Venegas Arrabé a2c712e588
lib: Win32 port of MemoryMappedFile
lib/memory_mapped_file.cc used POSIX open/fstat/mmap, which does not
exist under mingw-w64, blocking a native Windows build of the prjxray
tools. Add an #ifdef _WIN32 branch using
CreateFileA/CreateFileMappingA/MapViewOfFile; the POSIX path is
byte-for-byte unchanged.

One behavioural note: a zero-length file cannot be mapped on Windows,
so that case returns an object with nullptr data and zero size to
preserve the "file exists" contract of InitWithFile.
2026-07-31 23:08:45 +02:00
..
include/prjxray tools/bitread.cc: fix build with recent gcc 2026-02-25 11:01:16 +01:00
test_data Add tools test 2020-12-01 15:48:12 +01:00
xilinx Add licensing header to C++ source and header files 2020-05-26 07:33:12 -07:00
CMakeLists.txt bitstream_tools: Add unit tests for Spartan6 2019-10-22 09:20:04 +02:00
big_endian_span_test.cc Add licensing header to C++ source and header files 2020-05-26 07:33:12 -07:00
bit_ops_test.cc Add licensing header to C++ source and header files 2020-05-26 07:33:12 -07:00
database.cc Add licensing header to C++ source and header files 2020-05-26 07:33:12 -07:00
memory_mapped_file.cc lib: Win32 port of MemoryMappedFile 2026-07-31 23:08:45 +02:00
memory_mapped_file_test.cc Add licensing header to C++ source and header files 2020-05-26 07:33:12 -07:00
segbits_file_reader.cc Add licensing header to C++ source and header files 2020-05-26 07:33:12 -07:00
segbits_file_reader_test.cc Add licensing header to C++ source and header files 2020-05-26 07:33:12 -07:00