1
0
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:
Darryl Pogue
2011-08-06 13:39:35 -07:00
parent 942a007f4b
commit 42c9df919b
3 changed files with 4 additions and 2 deletions

View File

@ -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

View File

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

View File

@ -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