aboutsummaryrefslogtreecommitdiff
path: root/patches/fake-08
diff options
context:
space:
mode:
Diffstat (limited to 'patches/fake-08')
-rw-r--r--patches/fake-08/0001-add-missing-headers-gcc-13.patch88
1 files changed, 88 insertions, 0 deletions
diff --git a/patches/fake-08/0001-add-missing-headers-gcc-13.patch b/patches/fake-08/0001-add-missing-headers-gcc-13.patch
new file mode 100644
index 0000000..9f0c638
--- /dev/null
+++ b/patches/fake-08/0001-add-missing-headers-gcc-13.patch
@@ -0,0 +1,88 @@
+diff --git a/platform/libretro/libretrohosthelpers.h b/platform/libretro/libretrohosthelpers.h
+index e898bf3..4f0d1b2 100644
+--- a/platform/libretro/libretrohosthelpers.h
++++ b/platform/libretro/libretrohosthelpers.h
+@@ -1,4 +1,5 @@
+ #include <string.h>
++#include <stdint.h>
+
+ void setInputState(
+ uint8_t kDown,
+@@ -7,4 +8,4 @@ void setInputState(
+ int16_t mouseY,
+ uint8_t mouseBtnState);
+
+-void setCartDirectory(std::string dir);
+\ No newline at end of file
++void setCartDirectory(std::string dir);
+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..38b5534 100644
+--- a/source/emojiconversion.cpp
++++ b/source/emojiconversion.cpp
+@@ -16,11 +16,11 @@
+ // replacement before they actually remove the feature.
+ #define _SILENCE_CXX17_CODECVT_HEADER_DEPRECATION_WARNING 1
+
+-
+ #include <locale>
+ #include <string>
+ #include <codecvt>
+ #include <cstring>
++#include <cstdint>
+ #include <regex>
+ #include <string_view>
+ #include <map>
+@@ -164,4 +164,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..cef9b3f 100644
+--- a/source/fontdata.cpp
++++ b/source/fontdata.cpp
+@@ -1,6 +1,7 @@
+
+ //taken from tac08: https://github.com/0xcafed00d/tac08
+ #include <string>
++#include <cstdint>
+
+ const char* font_ss_str = R"(77700000000000000000000000000000000000000000000000700000700000007770000000000000707000000000000000000000000000007070000007000000
+ 77700000777000007770000070700000707000007070000007700000770000007000000000700000777000000000000000000000000000007070000070700000
+@@ -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.h b/source/stringToDataHelpers.h
+index dfa8336..3766d29 100644
+--- a/source/stringToDataHelpers.h
++++ b/source/stringToDataHelpers.h
+@@ -1,9 +1,10 @@
+ #pragma once
+
+ #include <string>
++#include <cstdint>
+
+ void copy_string_to_sprite_memory(uint8_t sprite_data[128 * 64], std::string data);
+
+ void copy_mini_label_to_sprite_memory(uint8_t sprite_data[128 * 64], std::string data, int labeloffset);
+
+-void copy_string_to_memory(uint8_t* sprite_flag_data, std::string data);
+\ No newline at end of file
++void copy_string_to_memory(uint8_t* sprite_flag_data, std::string data);