Compile with latest devkitPPC

This commit is contained in:
Maschell 2022-06-05 18:35:52 +02:00
parent cf1923b8f8
commit 74d53f5502
3 changed files with 5 additions and 2 deletions

View File

@ -1,3 +1,3 @@
FROM wiiuenv/devkitppc:20211106
FROM wiiuenv/devkitppc:20220728
WORKDIR project

View File

@ -88,8 +88,11 @@ bool writeFileContent(const std::string &path, const std::string &content) {
}
extern "C" void __fini();
extern "C" void __init_wut_malloc();
int main(int argc, char **argv) {
// We need to call __init_wut_malloc somewhere so wut_malloc will be used for the memory allocation.
__init_wut_malloc();
initLogging();
if (IOS_Open((char *) ("/dev/iosuhax"), static_cast<IOSOpenMode>(0)) >= 0) {

View File

@ -7,7 +7,7 @@ std::unique_ptr<T> make_unique_nothrow(Args &&...args) noexcept(noexcept(T(std::
}
template<typename T>
inline typename std::_MakeUniq<T>::__array make_unique_nothrow(size_t num) noexcept {
inline typename std::unique_ptr<T> make_unique_nothrow(size_t num) noexcept {
return std::unique_ptr<T>(new (std::nothrow) std::remove_extent_t<T>[num]());
}