diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2022-10-29 16:31:54 +0900 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2022-10-29 12:06:03 +0000 |
commit | bc28acc347eace4d02bbb4b672655216f7dd3a81 (patch) | |
tree | 677ef93e7ce8baeec3c9f34447ddd2457b72e3b8 | |
parent | c5ca250eb5a0e55391607cc20fa382cd64e49e5e (diff) | |
download | ruby-bc28acc347eace4d02bbb4b672655216f7dd3a81.tar.gz |
[ruby/digest] Use CommonDigest by default if available
https://github.com/ruby/digest/commit/cce9ada85e
-rw-r--r-- | ext/digest/digest_conf.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/digest/digest_conf.rb b/ext/digest/digest_conf.rb index 1b929d8732..36a7d75289 100644 --- a/ext/digest/digest_conf.rb +++ b/ext/digest/digest_conf.rb @@ -3,7 +3,7 @@ def digest_conf(name) unless with_config("bundled-#{name}") cc = with_config("common-digest") - if cc == true or /\b#{name}\b/ =~ cc + if cc != false or /\b#{name}\b/ =~ cc if File.exist?("#$srcdir/#{name}cc.h") and have_header("CommonCrypto/CommonDigest.h") $defs << "-D#{name.upcase}_USE_COMMONDIGEST" |