From 36cf07bc446e24fc43e6b9a730c7118984d9d695 Mon Sep 17 00:00:00 2001 From: Jeffrey Altman Date: Wed, 16 Nov 2022 21:09:52 -0500 Subject: [PATCH] Windows: define __func__ in terms of __FUNCTION__ _MSC_VER < 1900 does not provide __func__. Where it is not available use __FUNCTION__ instead. Change-Id: I6624d2d429e90c993ad103cb83e6f61a58a5f800 --- include/config.h.w32 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/config.h.w32 b/include/config.h.w32 index 6e0f6bcf1..f8be38b5e 100644 --- a/include/config.h.w32 +++ b/include/config.h.w32 @@ -57,6 +57,10 @@ static const char *const rcsid[] = { (const char *)rcsid, "@(#)" msg } #define MAXPATHLEN MaxPathLen #endif +#if _MSC_VER < 1900 +# define __func__ __FUNCTION__ +#endif + #ifdef BUILD_KRB5_LIB #ifndef KRB5_LIB #ifdef _WIN32