diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-04-30 11:11:21 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-04-30 11:11:21 +0000 |
commit | ce007c7c86b4f6793179088937d23b5b01962118 (patch) | |
tree | 0ba8d8de8bc100187a3e7836ad9eb5bd3d456beb /ext/zlib/extconf.rb | |
parent | 3893159530be06b978b4f15e12c9840862b73cca (diff) | |
download | ruby-ce007c7c86b4f6793179088937d23b5b01962118.tar.gz |
* ext/zlib/extconf.rb: detect z_crc_t type which will be defined
since zlib-1.2.7.
* ext/zlib/zlib.c (rb_zlib_crc_table): use z_crc_t if available.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35496 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/zlib/extconf.rb')
-rw-r--r-- | ext/zlib/extconf.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/zlib/extconf.rb b/ext/zlib/extconf.rb index 499f55a046..d94fea743b 100644 --- a/ext/zlib/extconf.rb +++ b/ext/zlib/extconf.rb @@ -58,6 +58,7 @@ if %w'z libz zlib1 zlib zdll'.find {|z| have_library(z, 'deflateReset')} and have_func('crc32_combine', 'zlib.h') have_func('adler32_combine', 'zlib.h') + have_type('z_crc_t', 'zlib.h') create_makefile('zlib') |