From 1810e56cc6c1d5c54073a59562f2696f7429d58f Mon Sep 17 00:00:00 2001 From: zaxcav Date: Thu, 22 Sep 2016 13:21:22 +0200 Subject: [PATCH] Fix #if defined for when compiling on DEBUG on non-Windows platforms. --- src/core/Diagnostics.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/Diagnostics.cpp b/src/core/Diagnostics.cpp index dedbee4745..3f8cbcf87e 100644 --- a/src/core/Diagnostics.cpp +++ b/src/core/Diagnostics.cpp @@ -28,8 +28,8 @@ namespace Debug { void Break() { -#if DEBUG -#if __WINDOWS__ +#if defined(DEBUG) +#if defined(__WINDOWS__) if (IsDebuggerPresent()) { DebugBreak();