diff options
author | Shauren <shauren.trinity@gmail.com> | 2022-02-11 14:33:35 +0100 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2022-02-11 14:33:35 +0100 |
commit | cbcd149ce508dfe8ff508391f9e32b7dc2cfbe5c (patch) | |
tree | a0b8f575b1fba587e90781e43b4f94f4bbc7a812 /src/common/Debugging/Errors.cpp | |
parent | 5b02c53fc568edd96ab557a8dd4d0195bcc9ec8c (diff) |
Core/Misc: Explicitly include required headers instead of relying on them to be included by other headers
Diffstat (limited to 'src/common/Debugging/Errors.cpp')
-rw-r--r-- | src/common/Debugging/Errors.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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 <Windows.h> +#include <intrin.h> #define Crash(message) \ ULONG_PTR execeptionArgs[] = { reinterpret_cast<ULONG_PTR>(strdup(message)), reinterpret_cast<ULONG_PTR>(_ReturnAddress()) }; \ RaiseException(EXCEPTION_ASSERTION_FAILURE, 0, 2, execeptionArgs); #else +#include <cstring> // should be easily accessible in gdb extern "C" { TC_COMMON_API char const* TrinityAssertionFailedMessage = nullptr; } #define Crash(message) \ |