mirror of
https://github.com/openssl/openssl.git
synced 2026-05-07 20:12:39 +00:00
Fix rand_deprecated build if OPENSSL_API_COMPAT is not defined
Add test for OPENSSL_NO_DEPRECATED_1_1_0 (that covers symbols for these ancient functions). With strict warnings it break build with 'OPENSSL_API_COMPAT' is not defined, evaluates to '0' [-Werror=undef] Reviewed-by: Tomas Mraz <tomas@openssl.foundation> Reviewed-by: Eugene Syromiatnikov <esyr@openssl.org> Reviewed-by: Norbert Pocs <norbertp@openssl.org> MergeDate: Thu Apr 30 11:42:25 2026 (Merged from https://github.com/openssl/openssl/pull/30941)
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
|
||||
#if defined(OPENSSL_SYS_WINDOWS) || defined(OPENSSL_SYS_WIN32)
|
||||
#include <windows.h>
|
||||
#if OPENSSL_API_COMPAT < 0x10100000L
|
||||
#ifndef OPENSSL_NO_DEPRECATED_1_1_0
|
||||
|
||||
#define DEPRECATED_RAND_FUNCTIONS_DEFINED
|
||||
|
||||
|
||||
Reference in New Issue
Block a user