From 871ef7a73570a9af55af770437922fd229156c83 Mon Sep 17 00:00:00 2001 From: Brian Gianforcaro Date: Sun, 12 Sep 2021 09:06:33 -0700 Subject: 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`. --- AK/Random.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'AK/Random.h') diff --git a/AK/Random.h b/AK/Random.h index b4fe621d8b..398fff64b3 100644 --- a/AK/Random.h +++ b/AK/Random.h @@ -17,7 +17,7 @@ # include #endif -#if defined(__APPLE__) +#if defined(AK_OS_MACOS) # include #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 } -- cgit v1.2.3