lvandeve / lodepng

PNG encoder and decoder in C and C++.
zlib License
2.09k stars 426 forks source link

Add LODEPNG_NO_COMPILE_CRC flag #16

Closed OldFisher closed 9 years ago

OldFisher commented 9 years ago

I think this flag should be added. Just as it is with zlib, someone could use LodePNG and CRC32 routines in same project, so no point in duplicating the code and the tables.

lvandeve commented 9 years ago

Do you mean it would then just declare the crc function in lodepng.c, and you'd define it in another source file?

OldFisher commented 9 years ago

Yes, that's exactly what I meant.

lvandeve commented 9 years ago

Done, thank you for the good idea

OldFisher commented 9 years ago

Great, thank you for quick response and generally for this neat and useful library.