1
0
mirror of https://github.com/alliedmodders/hl2sdk.git synced 2025-01-05 17:13:36 +08:00

Wrapped #pragma warning in networkvar.h with #ifdef _MSC_VER.

This commit is contained in:
Nicholas Hastings 2013-02-08 00:08:22 -05:00
parent 0912401df2
commit 9fb54d2b77

View File

@ -18,8 +18,9 @@
#include "basehandle.h"
#endif
#ifdef _MSC_VER
#pragma warning( disable : 4284 ) // warning C4284: return type for 'CNetworkVarT<int>::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 )