Fix MSVC build failure

Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
Gilles Peskine 2023-11-03 17:01:32 +01:00
parent 479a1944e8
commit f5dd00288e

View File

@ -41,6 +41,11 @@
#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.