summaryrefslogtreecommitdiffstats
path: root/source/main.cpp
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-05-25 16:59:41 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-05-25 16:59:41 +0200
commit67154217a2be5f66eeaeedd10bcc24d26ce473c2 (patch)
tree4aa33083136074cc45df4d0aa6f33e01eca2e977 /source/main.cpp
parentAdded all new bindings, refactored Debuggers; new Debuggers function. (diff)
downloadcuberite-67154217a2be5f66eeaeedd10bcc24d26ce473c2.tar
cuberite-67154217a2be5f66eeaeedd10bcc24d26ce473c2.tar.gz
cuberite-67154217a2be5f66eeaeedd10bcc24d26ce473c2.tar.bz2
cuberite-67154217a2be5f66eeaeedd10bcc24d26ce473c2.tar.lz
cuberite-67154217a2be5f66eeaeedd10bcc24d26ce473c2.tar.xz
cuberite-67154217a2be5f66eeaeedd10bcc24d26ce473c2.tar.zst
cuberite-67154217a2be5f66eeaeedd10bcc24d26ce473c2.zip
Diffstat (limited to '')
-rw-r--r--source/main.cpp8
1 files changed, 4 insertions, 4 deletions
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 <dbghelp.h>
-#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)