From 11810e05e40e24de14a3f0213f978853ba632e9f Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Fri, 9 Mar 2012 09:39:48 +0000 Subject: Using the _DEBUG macro for *nix debug builds as well; trying to force 8-byte alignment on critical sections ( http://forum.mc-server.org/showthread.php?tid=384 ) git-svn-id: http://mc-server.googlecode.com/svn/trunk@387 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/NBT.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/NBT.cpp') diff --git a/source/NBT.cpp b/source/NBT.cpp index c600a1868..928ef8080 100644 --- a/source/NBT.cpp +++ b/source/NBT.cpp @@ -622,7 +622,7 @@ cNBTTree * cNBTParser::Parse(const char * a_Data, int a_Length) /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // Dumping the NBT tree (debug-only) -#ifdef _DEBUG +#if (defined(_DEBUG) && defined(_WIN32)) #define CASE_SIMPLE_TAG(TYPE,FMT) \ case cNBTTag::TAG_##TYPE: \ @@ -696,7 +696,7 @@ void DumpTree(const cNBTTree * a_Tree, int a_Level) #undef CASE_SIMPLE_TAG -#endif // _DEBUG +#endif // (_DEBUG && _WIN32) -- cgit v1.2.3