From 402aa509a039a488639ab7c89a72a9960ab3c127 Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Sat, 17 May 2014 08:03:37 -0700 Subject: [PATCH] Fix non-pch compilation --- src/aegisublocale.cpp | 2 +- src/command/command.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/aegisublocale.cpp b/src/aegisublocale.cpp index bf1879c50..3717edba2 100644 --- a/src/aegisublocale.cpp +++ b/src/aegisublocale.cpp @@ -72,7 +72,7 @@ void AegisubLocale::Init(std::string const& language) { bool AegisubLocale::HasLanguage(std::string const& language) { auto langs = GetTranslations()->GetAvailableTranslations(AEGISUB_CATALOG); - return find(langs.begin(), langs.end(), to_wx(language)) != end(langs); + return std::find(langs.begin(), langs.end(), to_wx(language)) != langs.end(); } std::string AegisubLocale::PickLanguage() { diff --git a/src/command/command.h b/src/command/command.h index 245ebe9ee..a22e97a60 100644 --- a/src/command/command.h +++ b/src/command/command.h @@ -22,6 +22,7 @@ #include #include +#include #include #include