mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-30 00:31:14 +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:
parent
d6a741af6c
commit
8f38367d46
Notes:
sideshowbarker
2024-07-17 06:43:27 +09:00
Author: https://github.com/ADKaster Commit: https://github.com/SerenityOS/serenity/commit/8f38367d46 Pull-request: https://github.com/SerenityOS/serenity/pull/15320 Reviewed-by: https://github.com/trflynn89 ✅
|
@ -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
|
||||
|
||||
|
|
|
@ -12,7 +12,6 @@
|
|||
#include <AK/StdLibExtras.h>
|
||||
#include <AK/String.h>
|
||||
#include <AK/Vector.h>
|
||||
#include <LibCore/Account.h>
|
||||
#include <LibCore/File.h>
|
||||
#include <LibCore/System.h>
|
||||
#include <limits.h>
|
||||
|
@ -26,6 +25,7 @@
|
|||
#include <unistd.h>
|
||||
|
||||
#ifdef __serenity__
|
||||
# include <LibCore/Account.h>
|
||||
# include <LibSystem/syscall.h>
|
||||
# include <serenity.h>
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue