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 <Gilles.Peskine@arm.com>
This commit is contained in:
Gilles Peskine 2023-11-29 19:42:43 +01:00
parent 895ebc30f0
commit 6f8ca29ce4

View File

@ -34,6 +34,7 @@
#include "test/helpers.h"
#include "test/macros.h"
#include "test/memory.h"
#include "common.h"
#include <stdio.h>
#include <string.h>
@ -42,11 +43,6 @@
#include <mbedtls/threading.h>
#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.