From 09b038f24cff68b7083f16b05607d2d787675de8 Mon Sep 17 00:00:00 2001 From: Nicholas Hastings Date: Fri, 8 Feb 2013 00:08:22 -0500 Subject: [PATCH] Wrapped #pragma warning in networkvar.h with #ifdef _MSC_VER. --- public/networkvar.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/public/networkvar.h b/public/networkvar.h index 8887a2cf..51724d84 100644 --- a/public/networkvar.h +++ b/public/networkvar.h @@ -18,8 +18,9 @@ #include "basehandle.h" #endif - +#ifdef _MSC_VER #pragma warning( disable : 4284 ) // warning C4284: return type for 'CNetworkVarT::operator ->' is 'int *' (ie; not a UDT or reference to a UDT. Will produce errors if applied using infix notation) +#endif #define MyOffsetOf( type, var ) ( (int)&((type*)0)->var )