mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 02:17:34 +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
|
@ -9,7 +9,7 @@
|
|||
#include <AK/Platform.h>
|
||||
#include <AK/Types.h>
|
||||
|
||||
#if defined(__serenity__) || defined(AK_OS_ANDROID)
|
||||
#if defined(AK_OS_SERENITY) || defined(AK_OS_ANDROID)
|
||||
# include <stdlib.h>
|
||||
#endif
|
||||
|
||||
|
@ -30,7 +30,7 @@ namespace AK {
|
|||
|
||||
inline void fill_with_random([[maybe_unused]] void* buffer, [[maybe_unused]] size_t length)
|
||||
{
|
||||
#if defined(__serenity__) || defined(AK_OS_ANDROID)
|
||||
#if defined(AK_OS_SERENITY) || defined(AK_OS_ANDROID)
|
||||
arc4random_buf(buffer, length);
|
||||
#elif defined(OSS_FUZZ)
|
||||
#elif defined(__unix__) or defined(AK_OS_MACOS)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue