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:
Andrew Kaster 2022-10-09 15:23:23 -06:00 committed by Linus Groh
commit 828441852f
Notes: sideshowbarker 2024-07-17 06:06:27 +09:00
46 changed files with 118 additions and 113 deletions

View file

@ -24,7 +24,7 @@ public:
Mutex()
: m_lock_count(0)
{
#ifndef __serenity__
#ifndef AK_OS_SERENITY
pthread_mutexattr_t attr;
pthread_mutexattr_init(&attr);
pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
@ -41,7 +41,7 @@ public:
void unlock();
private:
#ifdef __serenity__
#ifdef AK_OS_SERENITY
pthread_mutex_t m_mutex = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
#else
pthread_mutex_t m_mutex;