mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 15:07:44 +00: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
46 changed files with 118 additions and 113 deletions
|
@ -39,7 +39,7 @@ private:
|
|||
{
|
||||
#if defined(KERNEL)
|
||||
return Processor::current_thread()->get_allocation_enabled();
|
||||
#elif defined(__serenity__)
|
||||
#elif defined(AK_OS_SERENITY)
|
||||
// This extern thread-local lives in our LibC, which doesn't exist on other systems.
|
||||
return s_allocation_enabled;
|
||||
#else
|
||||
|
@ -51,7 +51,7 @@ private:
|
|||
{
|
||||
#if defined(KERNEL)
|
||||
Processor::current_thread()->set_allocation_enabled(value);
|
||||
#elif defined(__serenity__)
|
||||
#elif defined(AK_OS_SERENITY)
|
||||
s_allocation_enabled = value;
|
||||
#else
|
||||
(void)value;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue