diff --git a/public/tier0/memoverride.cpp b/public/tier0/memoverride.cpp index 41008863..0fcfb6bc 100644 --- a/public/tier0/memoverride.cpp +++ b/public/tier0/memoverride.cpp @@ -145,6 +145,11 @@ inline void *ReallocUnattributed( void *pMem, size_t nSize ) #define FREE_CALL #endif +// check for noexcept in crt +#ifndef _CRT_NOEXCEPT +#define _CRT_NOEXCEPT +#endif + extern "C" { @@ -255,7 +260,7 @@ ALLOC_CALL void * __cdecl _recalloc ( void * memblock, size_t count, size_t size return pMem; } -size_t _msize_base( void *pMem ) +size_t _msize_base( void *pMem ) _CRT_NOEXCEPT { return g_pMemAlloc->GetSize(pMem); }