kaitai_struct_cpp_stl_runtime
kaitai_struct_cpp_stl_runtime copied to clipboard
Add mingw support
This adds compilation and test running validation for Mingw on Windows using GitHub Actions CI. The implementation itself is pretty straightforward, as default GH Actions Windows image has Mingw 11.0 preinstalled.
Compilation issues
- Current codebase of kaitaistream.h fails to compile on Mingw build due to picking wrong endianness handling define (see #44 for bug report and #45 for previous attempt to fix it).
- While compiling with KS_STR_ENCODING_NONE,
src_encparameter inkaitai::kstream::bytes_to_stris unused and compiler complains about that. Silenced it using https://stackoverflow.com/a/1486931 (which is ancient, but works).