mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-21 17:54:48 +01:00
Core/Misc: Explicitly include required headers instead of relying on them to be included by other headers
This commit is contained in:
@@ -20,8 +20,10 @@
|
||||
#include "DB2Meta.h"
|
||||
#include "Errors.h"
|
||||
#include "Log.h"
|
||||
#include <limits>
|
||||
#include <sstream>
|
||||
#include <system_error>
|
||||
#include <cstring>
|
||||
|
||||
enum class DB2ColumnCompression : uint32
|
||||
{
|
||||
|
||||
@@ -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) \
|
||||
|
||||
@@ -21,6 +21,7 @@
|
||||
#ifdef _WIN32 // Windows
|
||||
#include <Windows.h>
|
||||
#elif defined(__linux__)
|
||||
#include <cstring>
|
||||
#include <sched.h>
|
||||
#include <sys/resource.h>
|
||||
#define PROCESS_HIGH_PRIORITY -15 // [-20, 19], default is 0
|
||||
|
||||
Reference in New Issue
Block a user