mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-25 00:50:22 +00:00
AK: Add AK_OS_GNU_HURD :^)
This is defined when building on GNU/Hurd, the GNU operating system with the Hurd as its kernel (as it was designed originally, before Linux and GNU/Linux came to be). Also, define the corresponding part of User-Agent.
This commit is contained in:
parent
e6cf125535
commit
79431b32b2
Notes:
sideshowbarker
2024-07-16 20:05:14 +09:00
Author: https://github.com/bugaevc Commit: https://github.com/SerenityOS/serenity/commit/79431b32b2 Pull-request: https://github.com/SerenityOS/serenity/pull/20961 Reviewed-by: https://github.com/ADKaster ✅
2 changed files with 6 additions and 0 deletions
|
@ -98,6 +98,10 @@
|
|||
# define AK_OS_SOLARIS
|
||||
#endif
|
||||
|
||||
#if defined(__gnu_hurd__)
|
||||
# define AK_OS_GNU_HURD
|
||||
#endif
|
||||
|
||||
#if defined(_WIN32) || defined(_WIN64)
|
||||
# define AK_OS_WINDOWS
|
||||
#endif
|
||||
|
|
|
@ -44,6 +44,8 @@ namespace Web {
|
|||
# define OS_STRING "DragonFly"
|
||||
#elif defined(AK_OS_SOLARIS)
|
||||
# define OS_STRING "SunOS"
|
||||
#elif defined(AK_OS_GNU_HURD)
|
||||
# define OS_STRING "GNU/Hurd"
|
||||
#else
|
||||
# error Unknown OS
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue