Compiling with -DLODEPNG_NO_COMPILE_CRC would lead to linker errors, since
lodepng_crc32() was still being referenced:
liblodepng.a(lodepng.o): in function lodepng_chunk_check_crc:
lodepng.cpp:2496: undefined reference to lodepng_crc32
liblodepng.a(lodepng.o): in function lodepng_chunk_generate_crc:
lodepng.cpp:2503: undefined reference to lodepng_crc32
liblodepng.a(lodepng.o): in function lodepng_inspect:
lodepng.cpp:4083: undefined reference to lodepng_crc32
Just #ifdef out the references too, ignoring CRCs in the decoder and
generating a zero CRC in the encoder.
Compiling with -DLODEPNG_NO_COMPILE_CRC would lead to linker errors, since lodepng_crc32() was still being referenced:
liblodepng.a(lodepng.o): in function
lodepng_chunk_check_crc
: lodepng.cpp:2496: undefined reference tolodepng_crc32
liblodepng.a(lodepng.o): in functionlodepng_chunk_generate_crc
: lodepng.cpp:2503: undefined reference tolodepng_crc32
liblodepng.a(lodepng.o): in functionlodepng_inspect
: lodepng.cpp:4083: undefined reference tolodepng_crc32
Just #ifdef out the references too, ignoring CRCs in the decoder and generating a zero CRC in the encoder.