diff --git a/libraries/libvapours/include/vapours/util.hpp b/libraries/libvapours/include/vapours/util.hpp index 0a7702eda..70771d657 100644 --- a/libraries/libvapours/include/vapours/util.hpp +++ b/libraries/libvapours/include/vapours/util.hpp @@ -41,8 +41,11 @@ #include #include #include -#include #include #include #include #include + +#ifdef ATMOSPHERE_IS_STRATOSPHERE +#include +#endif diff --git a/stratosphere/boot/source/boot_main.cpp b/stratosphere/boot/source/boot_main.cpp index b5d3e8c21..c8c238444 100644 --- a/stratosphere/boot/source/boot_main.cpp +++ b/stratosphere/boot/source/boot_main.cpp @@ -36,7 +36,7 @@ extern "C" { u32 __nx_fs_num_sessions = 1; /* TODO: Evaluate to what extent this can be reduced further. */ - #define INNER_HEAP_SIZE 0x1000 + #define INNER_HEAP_SIZE 0x0 size_t nx_inner_heap_size = INNER_HEAP_SIZE; char nx_inner_heap[INNER_HEAP_SIZE]; @@ -145,6 +145,18 @@ void __appExit(void) { fsExit(); } +namespace ams { + + void *Malloc(size_t size) { + AMS_ABORT("ams::Malloc was called"); + } + + void Free(void *ptr) { + AMS_ABORT("ams::Free was called"); + } + +} + void *operator new(size_t size) { return Allocate(size); }