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:
committed by
Charles Pigott
parent
c9aff698d0
commit
9895ced6af
2
src/3rdparty/squirrel/squirrel/sqcompiler.h
vendored
2
src/3rdparty/squirrel/squirrel/sqcompiler.h
vendored
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user