]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Fix VS2013 build of QUIC radix tests
authorMounir IDRASSI <mounir.idrassi@idrix.fr>
Thu, 23 Jul 2026 13:34:17 +0000 (22:34 +0900)
committerNeil Horman <nhorman@openssl.org>
Fri, 31 Jul 2026 13:12:48 +0000 (09:12 -0400)
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)

test/radix/quic_tests.c

index fd12c6a543d55c111bef0c4d8935ebdbb830a21b..5d1cb62fb25b86b20e8cfbb2222bd63e87400d73 100644 (file)
@@ -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;
     }