mirror of
https://github.com/alliedmodders/hl2sdk.git
synced 2025-09-19 20:16:10 +08:00
Only define NO_MALLOC_OVERRIDE (on posix) if not already defined.
This commit is contained in:
@ -14,8 +14,11 @@
|
||||
#pragma once
|
||||
#endif
|
||||
|
||||
#if defined( POSIX )
|
||||
#if !defined( NO_MALLOC_OVERRIDE ) && defined( POSIX )
|
||||
#define NO_MALLOC_OVERRIDE
|
||||
#endif
|
||||
|
||||
#if defined( NO_MALLOC_OVERRIDE ) && !defined( NO_HOOK_MALLOC )
|
||||
#define NO_HOOK_MALLOC
|
||||
#endif
|
||||
|
||||
|
@ -11,8 +11,11 @@
|
||||
// to include this potentially multiple times (since we can deactivate debugging
|
||||
// by including memdbgoff.h)
|
||||
|
||||
#if defined( POSIX )
|
||||
#if !defined( NO_MALLOC_OVERRIDE ) && defined( POSIX )
|
||||
#define NO_MALLOC_OVERRIDE
|
||||
#endif
|
||||
|
||||
#if defined( NO_MALLOC_OVERRIDE ) && !defined( NO_HOOK_MALLOC )
|
||||
#define NO_HOOK_MALLOC
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user