mirror of
https://github.com/alliedmodders/hl2sdk.git
synced 2025-09-20 04:26:03 +08:00
Fixed conflict between min/max macros and std::min/max when using GCC >= 4.2.
This commit is contained in:
@ -186,7 +186,7 @@ CEventAction::CEventAction( const char *ActionData )
|
||||
|
||||
// this memory pool stores blocks around the size of CEventAction/inputitem_t structs
|
||||
// can be used for other blocks; will error if to big a block is tried to be allocated
|
||||
CMemoryPool g_EntityListPool( max(sizeof(CEventAction),sizeof(CMultiInputVar::inputitem_t)), 512, CMemoryPool::GROW_FAST, "g_EntityListPool" );
|
||||
CMemoryPool g_EntityListPool( MAX(sizeof(CEventAction),sizeof(CMultiInputVar::inputitem_t)), 512, CMemoryPool::GROW_FAST, "g_EntityListPool" );
|
||||
|
||||
#include "tier0/memdbgoff.h"
|
||||
|
||||
|
Reference in New Issue
Block a user