mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 07:07:45 +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
|
@ -10,7 +10,7 @@
|
|||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
#ifdef __serenity__
|
||||
#ifdef AK_OS_SERENITY
|
||||
# include <serenity.h>
|
||||
#elif defined(__linux__) or defined(AK_OS_MACOS)
|
||||
# include <pthread.h>
|
||||
|
@ -23,7 +23,7 @@ namespace AK {
|
|||
|
||||
StackInfo::StackInfo()
|
||||
{
|
||||
#ifdef __serenity__
|
||||
#ifdef AK_OS_SERENITY
|
||||
if (get_stack_bounds(&m_base, &m_size) < 0) {
|
||||
perror("get_stack_bounds");
|
||||
VERIFY_NOT_REACHED();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue