summaryrefslogtreecommitdiff
path: root/src/utils
diff options
context:
space:
mode:
authorKiritoDv <kiritodev01@gmail.com>2023-08-25 00:58:20 -0600
committerKiritoDv <kiritodev01@gmail.com>2023-08-25 00:58:20 -0600
commitf8e30c6b96947730f4a67d873de7914adb8186d2 (patch)
tree3298447112e086b852502766d730f96e99952b85 /src/utils
parent64eddebf4d45b4775f6e9f248cbfaa1cb3ab55f2 (diff)
Fixed linux compilation
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/MIODecoder.cpp3
-rw-r--r--src/utils/MIODecoder.h3
2 files changed, 4 insertions, 2 deletions
diff --git a/src/utils/MIODecoder.cpp b/src/utils/MIODecoder.cpp
index 14f8eff..0a1698e 100644
--- a/src/utils/MIODecoder.cpp
+++ b/src/utils/MIODecoder.cpp
@@ -4,6 +4,7 @@ extern "C" {
#include <libmio0/mio0.h>
}
#include <stdexcept>
+#include <cstdint>
std::unordered_map<uint32_t, std::vector<char>> MIO0Decoder::gCachedChunks;
@@ -25,4 +26,4 @@ std::vector<char>& MIO0Decoder::Decode(std::vector<uint8_t>& buffer, uint32_t of
void MIO0Decoder::ClearCache() {
gCachedChunks.clear();
-} \ No newline at end of file
+}
diff --git a/src/utils/MIODecoder.h b/src/utils/MIODecoder.h
index 3e92cc0..0d60ef9 100644
--- a/src/utils/MIODecoder.h
+++ b/src/utils/MIODecoder.h
@@ -2,10 +2,11 @@
#include <vector>
#include <unordered_map>
+#include <cstdint>
class MIO0Decoder {
public:
static std::unordered_map<uint32_t, std::vector<char>> gCachedChunks;
static std::vector<char>& Decode(std::vector<uint8_t>& buffer, uint32_t offset);
static void ClearCache();
-}; \ No newline at end of file
+};