fix noexcept for new crt

This commit is contained in:
HappyDOGE 2022-07-28 18:44:45 +03:00
parent 9a095d6b4b
commit 91df08ed0f

View File

@ -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);
}