mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-22 05:09:13 +00:00
CoreLibExe fixes for mingw support.
This commit is contained in:
@ -51,6 +51,6 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
|
||||
#include <malloc.h>
|
||||
|
||||
#ifdef HS_BUILD_FOR_WIN32
|
||||
#if _MSC_VER
|
||||
#include <crtdbg.h>
|
||||
#endif
|
||||
|
@ -56,7 +56,7 @@ static bool s_options[kNumErrorOptions];
|
||||
AUTO_INIT_FUNC(hsExeErrorInit) {
|
||||
// The critical section has to be initialized
|
||||
// before program startup and never freed
|
||||
static byte rawMemory[sizeof CCritSect];
|
||||
static byte rawMemory[sizeof(CCritSect)];
|
||||
s_critsect = new(rawMemory) CCritSect;
|
||||
}
|
||||
|
||||
|
@ -329,6 +329,7 @@ static void __cdecl CheckLeaksOnExit () {
|
||||
#endif // MEM_DEBUG
|
||||
|
||||
//============================================================================
|
||||
#ifdef MEM_DEBUG
|
||||
static int __cdecl CrtAllocHook (
|
||||
int method,
|
||||
void * pUserData,
|
||||
@ -344,6 +345,7 @@ static int __cdecl CrtAllocHook (
|
||||
|
||||
return 1;
|
||||
}
|
||||
#endif // MEM_DEBUG
|
||||
|
||||
//===========================================================================
|
||||
#ifdef MEM_DEBUG
|
||||
|
Reference in New Issue
Block a user