From 6f8ca29ce45087533dc08f10c384487a5494b342 Mon Sep 17 00:00:00 2001 From: Gilles Peskine Date: Wed, 29 Nov 2023 19:42:43 +0100 Subject: [PATCH] Use the existing definition of __func__ Now that library is in the include path when compiling metatest.c, don't duplicate the definition of __func__ from library/common.h. Signed-off-by: Gilles Peskine --- programs/test/metatest.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/programs/test/metatest.c b/programs/test/metatest.c index 1724aed0bd..392b638420 100644 --- a/programs/test/metatest.c +++ b/programs/test/metatest.c @@ -34,6 +34,7 @@ #include "test/helpers.h" #include "test/macros.h" #include "test/memory.h" +#include "common.h" #include #include @@ -42,11 +43,6 @@ #include #endif -/* C99 feature missing from older versions of MSVC */ -#if (defined(_MSC_VER) && (_MSC_VER <= 1900)) -#define /*no-check-names*/ __func__ __FUNCTION__ -#endif - /* This is an external variable, so the compiler doesn't know that we're never * changing its value.