diff options
author | Stephan Vedder <vedder@mbits.info> | 2022-04-28 11:33:59 +0300 |
---|---|---|
committer | Stephan Vedder <vedder@mbits.info> | 2022-04-28 11:33:59 +0300 |
commit | 0abc75332df32b7d890426682968e313b8eeab01 (patch) | |
tree | 9319bd2777286d37db4299d84d8d2458c02b134d | |
parent | bdc833c90191fd3ef4529aefe77f653a001af314 (diff) |
Fix windows compilation
-rw-r--r-- | Libraries/tinyxml/tinyxml.cpp | 1 | ||||
-rw-r--r-- | Source/Internal/error.cpp | 1 | ||||
-rw-r--r-- | Source/Timing/timestamp.h | 2 | ||||
-rw-r--r-- | Source/Utility/stacktrace.h | 1 |
4 files changed, 5 insertions, 0 deletions
diff --git a/Libraries/tinyxml/tinyxml.cpp b/Libraries/tinyxml/tinyxml.cpp index f598003f..514ee90c 100644 --- a/Libraries/tinyxml/tinyxml.cpp +++ b/Libraries/tinyxml/tinyxml.cpp @@ -32,6 +32,7 @@ distribution. #include "tinyxml.h" +#include <Compat/platform.h> #ifdef PLATFORM_WINDOWS #include <windows.h> #endif diff --git a/Source/Internal/error.cpp b/Source/Internal/error.cpp index 48e4b453..2318961d 100644 --- a/Source/Internal/error.cpp +++ b/Source/Internal/error.cpp @@ -32,6 +32,7 @@ #include <Graphics/graphics.h> #include <Threading/thread_sanity.h> #include <Compat/os_dialogs.h> +#include <Compat/platform.h> #include <Utility/stacktrace.h> #include <map> diff --git a/Source/Timing/timestamp.h b/Source/Timing/timestamp.h index 598b1274..12576f6c 100644 --- a/Source/Timing/timestamp.h +++ b/Source/Timing/timestamp.h @@ -24,6 +24,8 @@ //----------------------------------------------------------------------------- #pragma once +#include <Compat/platform.h> + inline uint64_t GetTimestamp() { // Use rdtsc instruction to get the tsc or Time Stamp Counter #if (defined(PLATFORM_LINUX) || defined(PLATFORM_MACOSX)) && (defined(__i386__) || defined(__x86_64__)) diff --git a/Source/Utility/stacktrace.h b/Source/Utility/stacktrace.h index dd0d69d1..c93e5843 100644 --- a/Source/Utility/stacktrace.h +++ b/Source/Utility/stacktrace.h @@ -22,6 +22,7 @@ //----------------------------------------------------------------------------- #include <sstream> +#include <Compat/platform.h> #if PLATFORM_LINUX || PLATFORM_MACOSX #include <Memory/allocation.h> #include <sys/time.h> |