Source/WTF/ChangeLog

 12014-03-21 Andres Gomez <agomez@igalia.com>
 2
 3 [GTK] Build fails with GCC < 4.8.x
 4 https://bugs.webkit.org/show_bug.cgi?id=130585
 5
 6 Reviewed by NOBODY (OOPS!).
 7
 8 The behavior in lower versions of GCC seem to be related to
 9 http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#2132.
 10
 11 Provided explicit casts for the failing ambiguous overloads.
 12
 13 * wtf/gtk/MainThreadGtk.cpp:
 14 (WTF::scheduleDispatchFunctionsOnMainThread):
 15 * wtf/gtk/RunLoopGtk.cpp:
 16 (WTF::RunLoop::wakeUp):
 17
1182014-03-20 Darin Adler <darin@apple.com>
219
320 Fix a header guard mistake (harmless but clearly wrong)

Source/WTF/wtf/gtk/MainThreadGtk.cpp

@@void initializeMainThreadPlatform()
4040
4141void scheduleDispatchFunctionsOnMainThread()
4242{
43  GMainLoopSource::createAndDeleteOnDestroy().schedule("[WebKit] dispatchFunctionsFromMainThread", dispatchFunctionsFromMainThread);
 43 GMainLoopSource::createAndDeleteOnDestroy().schedule("[WebKit] dispatchFunctionsFromMainThread", std::function<void()>(dispatchFunctionsFromMainThread));
4444}
4545
4646} // namespace WTF

Source/WTF/wtf/gtk/RunLoopGtk.cpp

@@void RunLoop::stop()
100100void RunLoop::wakeUp()
101101{
102102 ref();
103  GMainLoopSource::createAndDeleteOnDestroy().schedule("[WebKit] RunLoop work", std::bind(&RunLoop::performWork, this),
 103 GMainLoopSource::createAndDeleteOnDestroy().schedule("[WebKit] RunLoop work", std::function<void()>(std::bind(&RunLoop::performWork, this)),
104104 G_PRIORITY_DEFAULT, [this] { deref(); });
105105 g_main_context_wakeup(m_runLoopContext.get());
106106}