diff options
author | Brian Gianforcaro <bgianf@serenityos.org> | 2021-09-12 09:06:33 -0700 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-09-12 18:31:10 +0200 |
commit | 871ef7a73570a9af55af770437922fd229156c83 (patch) | |
tree | 4428e8440484a7df89d3caf4bbc4588a90d5a262 /AK/Random.h | |
parent | 51da5d03da8e462ef91a331453c345c88f961726 (diff) | |
download | serenity-871ef7a73570a9af55af770437922fd229156c83.zip |
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`.
Diffstat (limited to 'AK/Random.h')
-rw-r--r-- | AK/Random.h | 4 |
1 files changed, 2 insertions, 2 deletions
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 <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 } |