Fix: Silence some warnings when building with clang-cl on VS 2019

Clang-cl presents as both _MSC_VER and __clang__ in the preprocessor which makes some things confusing.
This commit is contained in:
Niels Martin Hansen
2020-06-06 19:25:42 +02:00
committed by Charles Pigott
parent c9aff698d0
commit 9895ced6af
2 changed files with 13 additions and 3 deletions

View File

@@ -72,7 +72,7 @@ struct SQVM;
#define TK_CONST 324
/* MSVC doesn't like NORETURN for function prototypes, but we kinda need it for GCC. */
#if defined(_MSC_VER)
#if defined(_MSC_VER) && !defined(__clang__)
typedef void(*CompilerErrorFunc)(void *ud, const SQChar *s);
#else
typedef NORETURN void(*CompilerErrorFunc)(void *ud, const SQChar *s);