From cbcd149ce508dfe8ff508391f9e32b7dc2cfbe5c Mon Sep 17 00:00:00 2001 From: Shauren Date: Fri, 11 Feb 2022 14:33:35 +0100 Subject: Core/Misc: Explicitly include required headers instead of relying on them to be included by other headers --- src/common/Debugging/Errors.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/common/Debugging/Errors.cpp') diff --git a/src/common/Debugging/Errors.cpp b/src/common/Debugging/Errors.cpp index d61f7fa60bb..6bb22c567de 100644 --- a/src/common/Debugging/Errors.cpp +++ b/src/common/Debugging/Errors.cpp @@ -35,10 +35,12 @@ #if TRINITY_PLATFORM == TRINITY_PLATFORM_WINDOWS #include +#include #define Crash(message) \ ULONG_PTR execeptionArgs[] = { reinterpret_cast(strdup(message)), reinterpret_cast(_ReturnAddress()) }; \ RaiseException(EXCEPTION_ASSERTION_FAILURE, 0, 2, execeptionArgs); #else +#include // should be easily accessible in gdb extern "C" { TC_COMMON_API char const* TrinityAssertionFailedMessage = nullptr; } #define Crash(message) \ -- cgit v1.2.3