Adapted to Mingw. Still some elements must adapted.

git-svn-id: https://clonekeenplus.svn.sourceforge.net/svnroot/clonekeenplus/cgenius/trunk@167 4df4b0f3-56ce-47cb-b001-ed939b7d65a6
This commit is contained in:
gerstrong
2009-07-25 16:27:11 +00:00
parent 476a64065b
commit 406e29984f
8 changed files with 14 additions and 24 deletions

View File

@@ -14,7 +14,7 @@
#include <time.h>
#ifdef WIN32
#ifdef WIN32__
void RaiseDebugger() {
#ifdef DEBUG
@@ -119,7 +119,7 @@ void RaiseDebugger() {
#endif
#ifdef WIN32
#ifdef WIN32__
#include "AuxLib.h" // for Windows.h
@@ -355,7 +355,7 @@ void OlxWriteCoreDump(const char* fileName)
#endif
#include <unistd.h>
#include <sys/types.h>
#include <sys/wait.h>
//#include <sys/wait.h>
#include <cstring>
#include <cstdio>
@@ -373,7 +373,7 @@ static void GdbWriteCoreDump(const char* fname) {
if(p) {
fprintf(p, "%s", gdbparam);
fflush(p);
int status = 0; wait(&status);
//int status = 0; wait(&status);
pclose(p);
}
}
@@ -447,7 +447,7 @@ void DumpCallstack(void (*PrintOutFct) (const std::string&)) {
free(strs);
}
#elif defined(WIN32)
#elif defined(WIN32__)
#include "StackWalker.h" // Call Luke Stackwalker for help
@@ -489,7 +489,7 @@ void DumpCallstack(void (*LineOutFct) (const std::string&))
#else
#warning No DumpCallstack implementation for this arch/sys
//#warning No DumpCallstack implementation for this arch/sys
void DumpCallstackPrintf(void* callpnt) {
printf("DumpCallstackPrintf not implemented\n");