fhanau / Efficient-Compression-Tool

Fast and effective C++ file optimizer
Apache License 2.0
596 stars 41 forks source link

Fix building for ARM-based macOS #119

Closed NeRdTheNed closed 1 year ago

NeRdTheNed commented 1 year ago
fhanau commented 1 year ago

Implemented the fix. Note that changing the function signature of the ARM crc32 in this case actually causes the checksum to be corrupted, perhaps because it changes the return value from 32 to 64 bits. Of course having mismatching function signatures should be avoided, but for now removing the header containing the function prototype for ARM fixes the compilation and does not result in invalid signatures. I will develop a proper patch later on.