From: Mathias Berchtold Date: Fri, 21 Apr 2023 23:16:39 +0000 (-0600) Subject: build_wincrypt_test.c: Fix compilation with MSVC X-Git-Tag: openssl-3.1.8~65 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=081d30b8f233e3ff77b48aab52ae4a10282c9dd8;p=thirdparty%2Fopenssl.git build_wincrypt_test.c: Fix compilation with MSVC Fixes issue https://github.com/openssl/openssl/issues/20805 Reviewed-by: Todd Short Reviewed-by: Tomas Mraz (cherry picked from commit b5a635dc2113e1bc807ea358a670146c813df989) Reviewed-by: Saša Nedvědický Reviewed-by: Matt Caswell (Merged from https://github.com/openssl/openssl/pull/26018) --- diff --git a/test/build_wincrypt_test.c b/test/build_wincrypt_test.c index 5bd75e6a432..0c0a5465276 100644 --- a/test/build_wincrypt_test.c +++ b/test/build_wincrypt_test.c @@ -22,7 +22,11 @@ # include # 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