
Originally Posted by
zyzzle
Thanks, the latest version with -i works well in my Windows XP...
Is there a chance that you can compile a DJGPP MS-DOS binary of 1.15 with Zopfli option included? Really would be neat.
Sure. djgpp 2.03p2 gcc 4.7.2 + g++ 4.7.2 + binutils 2.23.1 compiled stripped binary(only) attached.
A tiny patch for lib_zopfli.cc is needed.
Code:
--- lib_zopfli.cc 2013-03-20 11:40:28 +0800
+++ lib_zopfli.djgpp.cc 2013-03-20 14:28:07 +0800
@@ -24,11 +24,11 @@
bool compress_zopfli(ZopfliFormat output_type, const unsigned char* in_data, unsigned in_size, unsigned char* out_data, unsigned& out_size, unsigned num_passes) throw ()
{
ZopfliOptions options;
unsigned char* zopfli_data = 0;
- unsigned zopfli_size = 0;
+ size_t zopfli_size = 0;
options.verbose = 0;
options.verbose_more = 0;
options.numiterations = (int)num_passes;
options.blocksplitting = 1;