From: Mounir IDRASSI Date: Thu, 23 Jul 2026 13:34:17 +0000 (+0900) Subject: Fix VS2013 build of QUIC radix tests X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8027baa90ae77732942b140a0134fe60774fef13;p=thirdparty%2Fopenssl.git 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 Reviewed-by: Milan Broz 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 fd12c6a543d..5d1cb62fb25 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; }