Skip to content

Commit e092ed9

Browse files
noburhenium
authored andcommitted
reduce LibreSSL warnings
* ext/openssl/extconf.rb: LibreSSL headers emit "overriding WinCrypt defines" warnings if wincrypt.h has been included (except for x509.h) on Windows. get rid of including the header by defining NOCRYPT macro. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64101 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Sync-with-trunk: r64101
1 parent a597d2b commit e092ed9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ext/openssl/extconf.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,10 @@ def find_openssl_library
125125
OpenSSL.check_func_or_macro("ENGINE_load_#{name}", "openssl/engine.h")
126126
}
127127

128+
if ($mswin || $mingw) && have_macro("LIBRESSL_VERSION_NUMBER")
129+
$defs.push("-DNOCRYPT")
130+
end
131+
128132
# added in 0.9.8X
129133
have_func("EVP_CIPHER_CTX_new")
130134
have_func("EVP_CIPHER_CTX_free")

0 commit comments

Comments
 (0)