mirror of
https://github.com/alliedmodders/hl2sdk.git
synced 2025-01-04 00:23:25 +08:00
Undefine RESTRICT if GNUC due to ABI incompat between GCC and Clang.
This commit is contained in:
parent
9bdeb3743c
commit
a111d890da
@ -500,11 +500,7 @@ typedef void * HINSTANCE;
|
|||||||
#define FMTFUNCTION( a, b )
|
#define FMTFUNCTION( a, b )
|
||||||
#elif defined(GNUC)
|
#elif defined(GNUC)
|
||||||
#define SELECTANY __attribute__((weak))
|
#define SELECTANY __attribute__((weak))
|
||||||
#if defined(LINUX) && !defined(DEDICATED)
|
|
||||||
#define RESTRICT
|
#define RESTRICT
|
||||||
#else
|
|
||||||
#define RESTRICT __restrict
|
|
||||||
#endif
|
|
||||||
#define RESTRICT_FUNC
|
#define RESTRICT_FUNC
|
||||||
// squirrel.h does a #define printf DevMsg which leads to warnings when we try
|
// squirrel.h does a #define printf DevMsg which leads to warnings when we try
|
||||||
// to use printf as the prototype format function. Using __printf__ instead.
|
// to use printf as the prototype format function. Using __printf__ instead.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user