mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-09 09:34:57 +09:00
AK: Add support for building on Android with API version >= 30
This commit is contained in:
parent
686c15149e
commit
3b15addbc8
Notes:
sideshowbarker
2024-07-18 03:20:18 +09:00
Author: https://github.com/ADKaster
Commit: 3b15addbc8
Pull-request: https://github.com/SerenityOS/serenity/pull/14606
Reviewed-by: https://github.com/linusg
Reviewed-by: https://github.com/nico
2 changed files with 17 additions and 2 deletions
|
@ -9,7 +9,7 @@
|
|||
#include <AK/Platform.h>
|
||||
#include <AK/Types.h>
|
||||
|
||||
#if defined(__serenity__)
|
||||
#if defined(__serenity__) || defined(AK_OS_ANDROID)
|
||||
# include <stdlib.h>
|
||||
#endif
|
||||
|
||||
|
@ -25,7 +25,7 @@ namespace AK {
|
|||
|
||||
inline void fill_with_random([[maybe_unused]] void* buffer, [[maybe_unused]] size_t length)
|
||||
{
|
||||
#if defined(__serenity__)
|
||||
#if defined(__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