diff --git a/Source/Core/DolphinWX/Src/ConfigMain.cpp b/Source/Core/DolphinWX/Src/ConfigMain.cpp index 0841c72696..968cee42ab 100644 --- a/Source/Core/DolphinWX/Src/ConfigMain.cpp +++ b/Source/Core/DolphinWX/Src/ConfigMain.cpp @@ -18,7 +18,6 @@ #include // System #include #include -#include #include #include "Common.h" @@ -43,6 +42,14 @@ #include "Main.h" #include "VideoBackendBase.h" +#if defined(__APPLE__) +#include +using std::tr1::function; +#else +#include +using std::function; +#endif + #define TEXT_BOX(page, text) new wxStaticText(page, wxID_ANY, text, wxDefaultPosition, wxDefaultSize) extern CFrame* main_frame; @@ -597,7 +604,8 @@ void CConfigMain::CreateGUIControls() theme_selection->SetSelection(theme_selection->GetCount() - 1); }); - theme_selection->Bind(wxEVT_COMMAND_CHOICE_SELECTED, std::function([this,theme_selection](wxEvent&) + // std::function = avoid error on msvc + theme_selection->Bind(wxEVT_COMMAND_CHOICE_SELECTED, function([this,theme_selection](wxEvent&) { SConfig::GetInstance().m_LocalCoreStartupParameter.theme_name = theme_selection->GetStringSelection(); main_frame->InitBitmaps();