ext/zlib/extconf.rb in zlib-2.1.1 vs ext/zlib/extconf.rb in zlib-3.0.0
- old
+ new
@@ -119,13 +119,15 @@
if zsrc
$defs << "-DHAVE_CRC32_COMBINE"
$defs << "-DHAVE_ADLER32_COMBINE"
$defs << "-DHAVE_TYPE_Z_CRC_T"
+ $defs << "-DHAVE_TYPE_Z_SIZE_T"
else
have_func('crc32_combine', 'zlib.h')
have_func('adler32_combine', 'zlib.h')
have_type('z_crc_t', 'zlib.h')
+ have_type('z_size_t', 'zlib.h')
end
create_makefile('zlib') {|conf|
if zsrc
conf.concat addconf if addconf