1
0
Fork 0

Remove gcc 4.7 workaround

This commit is contained in:
wangqr 2020-06-07 12:24:26 -04:00
parent af8cb9b601
commit b9b1443578
1 changed files with 4 additions and 0 deletions

View File

@ -147,8 +147,12 @@ bool AegisubApp::OnInit() {
boost::filesystem::path::imbue(std::locale());
#if defined(__GNUC__) && (__GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 8))
// Pointless `this` capture required due to http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51494
agi::dispatch::Init([this](agi::dispatch::Thunk f) {
#else
agi::dispatch::Init([](agi::dispatch::Thunk f) {
#endif
auto evt = new ValueEvent<agi::dispatch::Thunk>(EVT_CALL_THUNK, -1, std::move(f));
wxTheApp->QueueEvent(evt);
});