1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 07:17:35 +00:00

AK+LibCore: Standardize on AK_OS_MACOS instead of __APPLE__

We use our custom platform definitions in most places, remove
the few remaining places we weren't using `AK_OS_MACOS`.
This commit is contained in:
Brian Gianforcaro 2021-09-12 09:06:33 -07:00 committed by Andreas Kling
parent 51da5d03da
commit 871ef7a735
3 changed files with 6 additions and 5 deletions

View file

@ -17,7 +17,7 @@
# include <unistd.h>
#endif
#if defined(__APPLE__)
#if defined(AK_OS_MACOS)
# include <sys/random.h>
#endif
@ -28,7 +28,7 @@ inline void fill_with_random([[maybe_unused]] void* buffer, [[maybe_unused]] siz
#if defined(__serenity__)
arc4random_buf(buffer, length);
#elif defined(OSS_FUZZ)
#elif defined(__unix__) or defined(__APPLE__)
#elif defined(__unix__) or defined(AK_OS_MACOS)
[[maybe_unused]] int rc = getentropy(buffer, length);
#endif
}