1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 22:07:35 +00:00

LibCore: Only include Account.h on Serenity in EventLoop and System

Core::Acount is only used within ``#ifdef __serenity__`` blocks in these
files, so guard the inclusion of Account.h in the same way.

This fixes the Android build of these files.
This commit is contained in:
Andrew Kaster 2022-09-22 07:46:01 -06:00 committed by Tim Flynn
parent d6a741af6c
commit 8f38367d46
2 changed files with 3 additions and 2 deletions

View file

@ -17,7 +17,6 @@
#include <AK/Singleton.h>
#include <AK/TemporaryChange.h>
#include <AK/Time.h>
#include <LibCore/Account.h>
#include <LibCore/Event.h>
#include <LibCore/EventLoop.h>
#include <LibCore/LocalServer.h>
@ -37,6 +36,8 @@
#include <unistd.h>
#ifdef __serenity__
# include <LibCore/Account.h>
extern bool s_global_initializers_ran;
#endif