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:
parent
2c076846f6
commit
09b038f24c
@ -18,8 +18,9 @@
|
|||||||
#include "basehandle.h"
|
#include "basehandle.h"
|
||||||
#endif
|
#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)
|
#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 )
|
#define MyOffsetOf( type, var ) ( (int)&((type*)0)->var )
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user