From 6dfea164edfb25d6e13f065709c1076a5d45c3a2 Mon Sep 17 00:00:00 2001 From: Henrique Gemignani Passos Lima Date: Thu, 3 Nov 2022 12:52:16 +0200 Subject: [PATCH] Add dummy rstl::sort impl for host compiler --- src/MetroidPrime/Player/CGameOptions.cpp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/MetroidPrime/Player/CGameOptions.cpp b/src/MetroidPrime/Player/CGameOptions.cpp index 8076b17f..675a7c85 100644 --- a/src/MetroidPrime/Player/CGameOptions.cpp +++ b/src/MetroidPrime/Player/CGameOptions.cpp @@ -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 {