1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 22:38:13 +00:00

AK+Lagom: Make it possible to build for iOS

This commit makes it possible to build AK and most of Lagom for iOS,
based on the work for the Ladybird build demoed on discord:
1211987732
This commit is contained in:
Filiph Siitam Sandström 2024-02-27 14:32:29 +01:00 committed by Andrew Kaster
parent 2dce453f11
commit fd694e8672
17 changed files with 44 additions and 31 deletions

View file

@ -10,7 +10,7 @@
#include "Environment.h"
#include <AK/ByteString.h>
#if defined(AK_OS_MACOS)
#if defined(AK_OS_MACOS) || defined(AK_OS_IOS)
# include <crt_externs.h>
#else
extern char** environ;
@ -20,7 +20,7 @@ namespace Core::Environment {
char** raw_environ()
{
#if defined(AK_OS_MACOS)
#if defined(AK_OS_MACOS) || defined(AK_OS_IOS)
return *_NSGetEnviron();
#else
return environ;