1
0
mirror of https://github.com/alliedmodders/hl2sdk.git synced 2025-01-04 00:23:25 +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 2c076846f6
commit 09b038f24c

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 )