mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 09:17:35 +00:00
AK+Userland: Replace Linux, macOS, and *BSD macros with platform defines
We have such nice platform macros, let's clean up any remnants of manual __my_platform__ macros in LibCore, LibCompress and AK.
This commit is contained in:
parent
539fb08551
commit
1d533acbc0
6 changed files with 18 additions and 18 deletions
|
@ -87,7 +87,7 @@ ErrorOr<int> accept4(int sockfd, struct sockaddr*, socklen_t*, int flags);
|
|||
#endif
|
||||
|
||||
ErrorOr<void> sigaction(int signal, struct sigaction const* action, struct sigaction* old_action);
|
||||
#if defined(__APPLE__) || defined(__OpenBSD__) || defined(__FreeBSD__)
|
||||
#if defined(AK_OS_MACOS) || defined(AK_OS_OPENBSD) || defined(AK_OS_FREEBSD)
|
||||
ErrorOr<sig_t> signal(int signal, sig_t handler);
|
||||
#else
|
||||
ErrorOr<sighandler_t> signal(int signal, sighandler_t handler);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue