Add dummy rstl::sort impl for host compiler

This commit is contained in:
Henrique Gemignani Passos Lima 2022-11-03 12:52:16 +02:00
parent b9f422978b
commit 6dfea164ed
No known key found for this signature in database
GPG Key ID: E224F951761145F8
1 changed files with 7 additions and 5 deletions

View File

@ -14,11 +14,13 @@
#include "dolphin/os.h"
namespace rstl {
// template < class It, class Cmp >
// void sort(It first, It last, Cmp cmp) {
// // TODO: proper implementation
// cmp(*first, *last);
// }
#ifndef __MWERKS__
template < class It, class Cmp >
void sort(It first, It last, Cmp cmp) {
// TODO: proper implementation
cmp(*first, *last);
}
#endif
} // namespace rstl
namespace {