summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMathias Berchtold <mberchtold@gmail.com>2023-04-21 17:16:39 -0600
committerTomas Mraz <tomas@openssl.org>2023-04-28 20:09:08 +0200
commitb5a635dc2113e1bc807ea358a670146c813df989 (patch)
treeef5b3e31b1dee2c0bd307474979226f113bd114c /test
parentdc231eb598460aec239c7f597f560bca47d9f72a (diff)
downloadopenssl-new-b5a635dc2113e1bc807ea358a670146c813df989.tar.gz
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)
Diffstat (limited to 'test')
-rw-r--r--test/build_wincrypt_test.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/build_wincrypt_test.c b/test/build_wincrypt_test.c
index 5bd75e6a43..0c0a546527 100644
--- a/test/build_wincrypt_test.c
+++ b/test/build_wincrypt_test.c
@@ -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