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)
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;
/* 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;
}