mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 07:57:47 +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
2 changed files with 6 additions and 0 deletions
|
@ -98,6 +98,10 @@
|
||||||
# define AK_OS_SOLARIS
|
# define AK_OS_SOLARIS
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(__gnu_hurd__)
|
||||||
|
# define AK_OS_GNU_HURD
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined(_WIN32) || defined(_WIN64)
|
#if defined(_WIN32) || defined(_WIN64)
|
||||||
# define AK_OS_WINDOWS
|
# define AK_OS_WINDOWS
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -44,6 +44,8 @@ namespace Web {
|
||||||
# define OS_STRING "DragonFly"
|
# define OS_STRING "DragonFly"
|
||||||
#elif defined(AK_OS_SOLARIS)
|
#elif defined(AK_OS_SOLARIS)
|
||||||
# define OS_STRING "SunOS"
|
# define OS_STRING "SunOS"
|
||||||
|
#elif defined(AK_OS_GNU_HURD)
|
||||||
|
# define OS_STRING "GNU/Hurd"
|
||||||
#else
|
#else
|
||||||
# error Unknown OS
|
# error Unknown OS
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue