fix noexcept for new crt
This commit is contained in:
parent
c9cac32343
commit
075f58b037
1 changed files with 6 additions and 1 deletions
|
@ -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 a new issue