mirror of
https://github.com/nillerusr/source-engine.git
synced 2024-12-22 14:16:50 +00:00
fix noexcept for new crt
This commit is contained in:
parent
9a095d6b4b
commit
91df08ed0f
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user