mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 18:37:35 +00:00
Everywhere: Replace uses of __serenity__ with AK_OS_SERENITY
Now that we have OS macros for essentially every supported OS, let's try to use them everywhere.
This commit is contained in:
parent
896d4e8dc1
commit
828441852f
46 changed files with 118 additions and 113 deletions
|
@ -12,7 +12,7 @@
|
|||
#include <errno.h>
|
||||
#include <spawn.h>
|
||||
|
||||
#ifdef __serenity__
|
||||
#ifdef AK_OS_SERENITY
|
||||
# include <serenity.h>
|
||||
#endif
|
||||
|
||||
|
@ -46,7 +46,7 @@ struct ArgvList {
|
|||
ErrorOr<pid_t> spawn()
|
||||
{
|
||||
auto pid = TRY(System::posix_spawn(m_path.view(), nullptr, nullptr, const_cast<char**>(get().data()), environ));
|
||||
#ifdef __serenity__
|
||||
#ifdef AK_OS_SERENITY
|
||||
TRY(System::disown(pid));
|
||||
#endif
|
||||
return pid;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue