From 67154217a2be5f66eeaeedd10bcc24d26ce473c2 Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Sat, 25 May 2013 14:59:41 +0000 Subject: Added base Code::Blocks project (WIP, still doesn't compile) and fixed some source errors with MinGW. git-svn-id: http://mc-server.googlecode.com/svn/trunk@1510 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/main.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'source/main.cpp') diff --git a/source/main.cpp b/source/main.cpp index 71110c265..baf41a845 100644 --- a/source/main.cpp +++ b/source/main.cpp @@ -11,9 +11,9 @@ #include "squirrelbindings/SquirrelBindings.h" #endif -#ifdef _WIN32 +#ifdef _MSC_VER #include -#endif // _WIN32 +#endif // _MSC_VER @@ -51,7 +51,7 @@ void ShowCrashReport(int) -#if defined(_WIN32) && !defined(_WIN64) +#if defined(_WIN32) && !defined(_WIN64) && defined(_MSC_VER) /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // Windows 32-bit stuff: when the server crashes, create a "dump file" containing the callstack of each thread and some variables; let the user send us that crash file for analysis @@ -128,7 +128,7 @@ int main( int argc, char **argv ) #endif // Magic code to produce dump-files on Windows if the server crashes: - #if defined(_WIN32) && !defined(_WIN64) + #if defined(_WIN32) && !defined(_WIN64) && defined(_MSC_VER) HINSTANCE hDbgHelp = LoadLibrary("DBGHELP.DLL"); g_WriteMiniDump = (pMiniDumpWriteDump)GetProcAddress(hDbgHelp, "MiniDumpWriteDump"); if (g_WriteMiniDump != NULL) -- cgit v1.2.3