mirror of
https://github.com/alliedmodders/hl2sdk.git
synced 2025-09-20 04:26:03 +08:00
Allow compilation on gcc/clang without -Wno-unknown-pragmas.
This commit is contained in:
@ -247,13 +247,17 @@ protected:
|
||||
|
||||
static CUtlMap<CDetailModel *, LightStyleInfo_t> gm_LightStylesMap;
|
||||
|
||||
#ifdef _WIN32
|
||||
#pragma warning( disable : 4201 ) //warning C4201: nonstandard extension used : nameless struct/union
|
||||
#endif
|
||||
union
|
||||
{
|
||||
model_t* m_pModel;
|
||||
SptrintInfo_t m_SpriteInfo;
|
||||
};
|
||||
#ifdef _WIN32
|
||||
#pragma warning( default : 4201 )
|
||||
#endif
|
||||
|
||||
#ifdef USE_DETAIL_SHAPES
|
||||
// pointer to advanced properties
|
||||
|
Reference in New Issue
Block a user