commit 5af9cb8a59c823a41c4195044ecfa7d03f123150
Author: Daniel Palmer <daniel@0x0f.com>
AuthorDate: Wed Aug 16 12:10:58 2023 +0900
Commit: Daniel Palmer <daniel@0x0f.com>
CommitDate: Wed Aug 16 12:10:58 2023 +0900
Fix build with GCC13
See: https://gcc.gnu.org/gcc-13/porting_to.html (Header dependency changes)
---
source/Audio.cpp | 1 +
source/PicoRam.h | 1 +
source/emojiconversion.cpp | 3 ++-
source/fontdata.cpp | 3 ++-
source/stringToDataHelpers.cpp | 3 ++-
5 files changed, 8 insertions(+), 3 deletions(-)
diff --git a/source/Audio.cpp b/source/Audio.cpp
index c82133e..2b9015f 100644
--- a/source/Audio.cpp
+++ b/source/Audio.cpp
@@ -3,6 +3,7 @@
#include "hostVmShared.h"
#include "mathhelpers.h"
+#include <cstdint>
#include <string>
#include <sstream>
#include <algorithm> // std::max
diff --git a/source/PicoRam.h b/source/PicoRam.h
index ff4c4e9..424ffa8 100644
--- a/source/PicoRam.h
+++ b/source/PicoRam.h
@@ -1,5 +1,6 @@
#pragma once
+#include <cstdint>
#include <cstring>
#include <string>
diff --git a/source/emojiconversion.cpp b/source/emojiconversion.cpp
index 2db1635..759a568 100644
--- a/source/emojiconversion.cpp
+++ b/source/emojiconversion.cpp
@@ -17,6 +17,7 @@
#define _SILENCE_CXX17_CODECVT_HEADER_DEPRECATION_WARNING 1
+#include <cstdint>
#include <locale>
#include <string>
#include <codecvt>
@@ -164,4 +165,4 @@ std::string charset::upper_to_emoji(std::string str)
}
return charset::utf8_to_pico8(newstring);
-}
\ No newline at end of file
+}
diff --git a/source/fontdata.cpp b/source/fontdata.cpp
index 1fdda14..0d62ead 100644
--- a/source/fontdata.cpp
+++ b/source/fontdata.cpp
@@ -1,5 +1,6 @@
//taken from tac08: https://github.com/0xcafed00d/tac08
+#include <cstdint>
#include <string>
const char* font_ss_str = R"(77700000000000000000000000000000000000000000000000700000700000007770000000000000707000000000000000000000000000007070000007000000
@@ -406,4 +407,4 @@ uint8_t defaultFontBinaryData[2048] = {
0, 14, 30, 8, 14, 0, 0, 0, // char 253
8, 4, 99, 16, 8, 0, 0, 0, // char 254
8, 16, 99, 4, 8, 0, 0, 0, // char 255
-};
\ No newline at end of file
+};
diff --git a/source/stringToDataHelpers.cpp b/source/stringToDataHelpers.cpp
index 36008d5..1446f9a 100644
--- a/source/stringToDataHelpers.cpp
+++ b/source/stringToDataHelpers.cpp
@@ -1,3 +1,4 @@
+#include <cstdint>
#include <string>
#include "stringToDataHelpers.h"
@@ -83,4 +84,4 @@ void copy_string_to_memory(uint8_t* sprite_flag_data, std::string data) {
sprite_flag_data[i++] = val;
}
}
-}
\ No newline at end of file
+}