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>
(Merged from https://github.com/openssl/openssl/pull/20806)
This commit is contained in:
Mathias Berchtold 2023-04-21 17:16:39 -06:00 committed by Tomas Mraz
parent dc231eb598
commit b5a635dc21

View File

@ -22,7 +22,11 @@
# include <wincrypt.h>
# ifndef X509_NAME
# ifndef PEDANTIC
# warning "wincrypt.h no longer defining X509_NAME before OpenSSL headers"
# 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