mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-11 02:13:56 +09:00
Everywhere: Replace uses of __serenity__ with AK_OS_SERENITY
Now that we have OS macros for essentially every supported OS, let's try to use them everywhere.
This commit is contained in:
parent
896d4e8dc1
commit
828441852f
Notes:
sideshowbarker
2024-07-17 06:06:27 +09:00
Author: https://github.com/ADKaster
Commit: 828441852f
Pull-request: https://github.com/SerenityOS/serenity/pull/15527
46 changed files with 118 additions and 113 deletions
|
@ -18,7 +18,7 @@
|
|||
#include <LibWeb/Platform/EventLoopPlugin.h>
|
||||
#include <LibWeb/Platform/Timer.h>
|
||||
|
||||
#ifdef __serenity__
|
||||
#ifdef AK_OS_SERENITY
|
||||
# include <serenity.h>
|
||||
#endif
|
||||
|
||||
|
@ -127,7 +127,7 @@ static String sanitized_url_for_logging(AK::URL const& url)
|
|||
|
||||
static void emit_signpost(String const& message, int id)
|
||||
{
|
||||
#ifdef __serenity__
|
||||
#ifdef AK_OS_SERENITY
|
||||
auto string_id = perf_register_string(message.characters(), message.length());
|
||||
perf_event(PERF_EVENT_SIGNPOST, string_id, id);
|
||||
#else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue