build_wincrypt_test.c: Fix compilation with MSVC

Fixes issue https://github.com/openssl/openssl/issues/20805

Reviewed-by: Todd Short <todd.short@me.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>

(cherry picked from commit b5a635dc21)

Reviewed-by: Saša Nedvědický <sashan@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/26018)
This commit is contained in:
Mathias Berchtold 2023-04-21 17:16:39 -06:00 committed by Tomas Mraz
parent 53931e6792
commit 081d30b8f2
1 changed files with 5 additions and 1 deletions

View File

@ -22,9 +22,13 @@
# include <wincrypt.h>
# ifndef X509_NAME
# ifndef PEDANTIC
# ifdef _MSC_VER
# pragma message("wincrypt.h no longer defining X509_NAME before OpenSSL headers")
# else
# warning "wincrypt.h no longer defining X509_NAME before OpenSSL headers"
# endif
# endif
# endif
#endif
#include <openssl/opensslconf.h>