diff options
Diffstat (limited to 'ext/openssl/deprecation.rb')
-rw-r--r-- | ext/openssl/deprecation.rb | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/ext/openssl/deprecation.rb b/ext/openssl/deprecation.rb index d77353678a..7dfc87c1c6 100644 --- a/ext/openssl/deprecation.rb +++ b/ext/openssl/deprecation.rb @@ -16,7 +16,11 @@ module OpenSSL end def self.check_func(func, header) - have_func(func, header, deprecated_warning_flag) and - have_header(header, nil, deprecated_warning_flag) + have_func(func, header, deprecated_warning_flag) + end + + def self.check_func_or_macro(func, header) + check_func(func, header) or + have_macro(func, header) && $defs.push("-DHAVE_#{func.upcase}") end end |