summaryrefslogtreecommitdiff
path: root/ext/digest
diff options
context:
space:
mode:
authorNobuyoshi Nakada <[email protected]>2022-10-29 16:31:54 +0900
committergit <[email protected]>2022-10-29 12:06:03 +0000
commitbc28acc347eace4d02bbb4b672655216f7dd3a81 ()
tree677ef93e7ce8baeec3c9f34447ddd2457b72e3b8 /ext/digest
parentc5ca250eb5a0e55391607cc20fa382cd64e49e5e (diff)
[ruby/digest] Use CommonDigest by default if available
https://.com/ruby/digest/commit/cce9ada85e
-rw-r--r--ext/digest/digest_conf.rb2
1 files changed, 1 insertions, 1 deletions
@@ -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 File.exist?("#$srcdir/#{name}cc.h") and
have_header("CommonCrypto/CommonDigest.h")
$defs << "-D#{name.upcase}_USE_COMMONDIGEST"