summaryrefslogtreecommitdiffstats
path: root/source/main.cpp
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-03-09 10:39:48 +0100
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-03-09 10:39:48 +0100
commit11810e05e40e24de14a3f0213f978853ba632e9f (patch)
treec478b4c6fd42bb9cd838ced889d27a6c1c16fb8c /source/main.cpp
parentAdded NBT example dumps for reference (diff)
downloadcuberite-11810e05e40e24de14a3f0213f978853ba632e9f.tar
cuberite-11810e05e40e24de14a3f0213f978853ba632e9f.tar.gz
cuberite-11810e05e40e24de14a3f0213f978853ba632e9f.tar.bz2
cuberite-11810e05e40e24de14a3f0213f978853ba632e9f.tar.lz
cuberite-11810e05e40e24de14a3f0213f978853ba632e9f.tar.xz
cuberite-11810e05e40e24de14a3f0213f978853ba632e9f.tar.zst
cuberite-11810e05e40e24de14a3f0213f978853ba632e9f.zip
Diffstat (limited to '')
-rw-r--r--source/main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/main.cpp b/source/main.cpp
index f19a88210..1d245ae0b 100644
--- a/source/main.cpp
+++ b/source/main.cpp
@@ -158,14 +158,14 @@ int main( int argc, char **argv )
#endif // _WIN32 && !_WIN64
// End of dump-file magic
- #ifdef _DEBUG
+ #if defined(_DEBUG) && defined(_MSC_VER)
_CrtSetDbgFlag ( _CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF );
// _X: The simple built-in CRT leak finder - simply break when allocating the Nth block ({N} is listed in the leak output)
// Only useful when the leak is in the same sequence all the time
// _CrtSetBreakAlloc(85950);
- #endif
+ #endif // _DEBUG && _MSC_VER
#ifndef _DEBUG
std::signal(SIGSEGV, ShowCrashReport);