1
0
mirror of https://github.com/alliedmodders/hl2sdk.git synced 2025-09-19 12:06:07 +08:00

More fixes for GCC and Clang builds.

This commit is contained in:
Scott Ehlert
2014-03-02 00:56:59 -06:00
parent 74a371eef4
commit 84ff4858a8
4 changed files with 15 additions and 6 deletions

View File

@ -18,8 +18,9 @@
#include "basehandle.h"
#endif
#if defined( COMPILER_MSVC )
#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 )
@ -57,7 +58,7 @@ public:
{
if ( pData )
{
g_pMemAlloc->Free(pData);
MemAlloc_Free(pData);
}
}
@ -65,7 +66,7 @@ public:
{
if ( pData )
{
g_pMemAlloc->Free(pData, pFileName, nLine );
MemAlloc_Free(pData, pFileName, nLine);
}
}
};