mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-27 03:37:53 +00:00
LibCore: Port EventLoop to Windows
This commit is contained in:
@@ -7,8 +7,12 @@
|
||||
#include <AK/NonnullOwnPtr.h>
|
||||
#include <LibCore/Event.h>
|
||||
#include <LibCore/EventLoopImplementation.h>
|
||||
#include <LibCore/EventLoopImplementationUnix.h>
|
||||
#include <LibCore/ThreadEventQueue.h>
|
||||
#ifdef AK_OS_WINDOWS
|
||||
# include <LibCore/EventLoopImplementationWindows.h>
|
||||
#else
|
||||
# include <LibCore/EventLoopImplementationUnix.h>
|
||||
#endif
|
||||
|
||||
namespace Core {
|
||||
|
||||
@@ -23,7 +27,7 @@ static EventLoopManager* s_event_loop_manager;
|
||||
EventLoopManager& EventLoopManager::the()
|
||||
{
|
||||
if (!s_event_loop_manager)
|
||||
s_event_loop_manager = new EventLoopManagerUnix;
|
||||
s_event_loop_manager = new EventLoopManagerPlatform;
|
||||
return *s_event_loop_manager;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user