Commit 8027baa90a for openssl.org
commit 8027baa90ae77732942b140a0134fe60774fef13
Author: Mounir IDRASSI <mounir.idrassi@idrix.fr>
Date: Thu Jul 23 22:34:17 2026 +0900
Fix VS2013 build of QUIC radix tests
Visual Studio 2013 does not provide the C99 __func__ predefined identifier in C mode. Use OPENSSL_FUNC, which maps to the compiler-supported equivalent.
This is the only source change required to compile current master with VS2013 Update 5 (cl 18.00.40629), on both x86 and x64.
Assisted-by: OpenCode:GLM-5.2
Reviewed-by: Neil Horman <nhorman@openssl.org>
Reviewed-by: Milan Broz <mbroz@openssl.org>
MergeDate: Fri Jul 31 13:13:04 2026
(Merged from https://github.com/openssl/openssl/pull/31988)
diff --git a/test/radix/quic_tests.c b/test/radix/quic_tests.c
index fd12c6a543..5d1cb62fb2 100644
--- a/test/radix/quic_tests.c
+++ b/test/radix/quic_tests.c
@@ -656,7 +656,7 @@ static int mutcbk_inject_frames(const QUIC_PKT_HDR *hdrin,
grow_allowance -= (hdrin->src_conn_id.id_len < grow_allowance) ? hdrin->src_conn_id.id_len : grow_allowance;
if (grow_allowance == 0) {
- TEST_info("%s not enough space to inject", __func__);
+ TEST_info("%s not enough space to inject", OPENSSL_FUNC);
return 0;
}
bufsz += grow_allowance;
@@ -667,7 +667,7 @@ static int mutcbk_inject_frames(const QUIC_PKT_HDR *hdrin,
/* discard const */
buf = (char *)mutctx->mutctx_iov.buf;
if (buf == NULL) {
- TEST_info("%s OPENSSL_malloc() failed", __func__);
+ TEST_info("%s OPENSSL_malloc() failed", OPENSSL_FUNC);
return 0;
}