From a111d890dad84d23135054b92fede1f69a168aca Mon Sep 17 00:00:00 2001 From: Nicholas Hastings Date: Sun, 3 Nov 2013 09:37:09 -0500 Subject: [PATCH] Undefine RESTRICT if GNUC due to ABI incompat between GCC and Clang. --- public/tier0/platform.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/public/tier0/platform.h b/public/tier0/platform.h index cdf7df78..6de637e8 100644 --- a/public/tier0/platform.h +++ b/public/tier0/platform.h @@ -500,11 +500,7 @@ typedef void * HINSTANCE; #define FMTFUNCTION( a, b ) #elif defined(GNUC) #define SELECTANY __attribute__((weak)) - #if defined(LINUX) && !defined(DEDICATED) - #define RESTRICT - #else - #define RESTRICT __restrict - #endif + #define RESTRICT #define RESTRICT_FUNC // 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.