From 2b808be0276f9409792f111a276c56778d9954eb Mon Sep 17 00:00:00 2001 From: inspuration Date: Wed, 11 Jun 2014 00:54:39 -0400 Subject: [PATCH] Additional std::find fixes --- src/core/hle/kernel/thread.cpp | 3 ++- src/video_core/gpu_debugger.h | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/core/hle/kernel/thread.cpp b/src/core/hle/kernel/thread.cpp index f4340e60f..5e979d3d2 100644 --- a/src/core/hle/kernel/thread.cpp +++ b/src/core/hle/kernel/thread.cpp @@ -8,6 +8,7 @@ #include #include #include +#include #include "common/common.h" #include "common/thread_queue_list.h" @@ -44,7 +45,7 @@ public: Result WaitSynchronization(bool* wait) { if (status != THREADSTATUS_DORMANT) { Handle thread = GetCurrentThreadHandle(); - if (std::find(waiting_threads.begin(), waiting_threads.end(), thread) == waiting_threads.end()) { + if (find(waiting_threads.begin(), waiting_threads.end(), thread) == waiting_threads.end()) { waiting_threads.push_back(thread); } WaitCurrentThread(WAITTYPE_THREADEND, this->GetHandle()); diff --git a/src/video_core/gpu_debugger.h b/src/video_core/gpu_debugger.h index 13edb9a47..b177ecd52 100644 --- a/src/video_core/gpu_debugger.h +++ b/src/video_core/gpu_debugger.h @@ -108,7 +108,7 @@ public: } auto obj = std::pair(address, cmdlist); - auto it = std::find(command_lists.begin(), command_lists.end(), obj); + auto it = find(command_lists.begin(), command_lists.end(), obj); bool is_new = (it == command_lists.end()); if (is_new) command_lists.push_back(obj);