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();