1
0
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:
Nicholas Hastings
2013-10-06 10:57:00 -04:00
parent b0e79a596d
commit 0134c042b0
2 changed files with 8 additions and 2 deletions

View File

@ -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

View File

@ -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