Fix non-pch compilation

This commit is contained in:
Thomas Goyne 2014-05-17 08:03:37 -07:00
parent d0ce26d7df
commit 402aa509a0
2 changed files with 2 additions and 1 deletions

View file

@ -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() {

View file

@ -22,6 +22,7 @@
#include <vector>
#include <wx/bitmap.h>
#include <wx/intl.h>
#include <wx/string.h>
#include <libaegisub/exception.h>