mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-25 00:50:22 +00:00
AK: Add AK_LIBC_GLIBC
This is defined when we're compiling against the GNU C Library, whether on Linux or on other kernels that glibc works on. More AK_LIBC_xxxx definitions could be potentially added in the future. Also add AK_LIBC_GLIBC_PREREQ(), which checks for a specific glibc version.
This commit is contained in:
parent
c4f12feadc
commit
3f90e9a8a0
Notes:
sideshowbarker
2024-07-17 06:00:02 +09:00
Author: https://github.com/bugaevc Commit: https://github.com/SerenityOS/serenity/commit/3f90e9a8a0 Pull-request: https://github.com/SerenityOS/serenity/pull/20958 Reviewed-by: https://github.com/ADKaster ✅
1 changed files with 7 additions and 0 deletions
|
@ -47,6 +47,13 @@
|
|||
# define AK_COMPILER_GCC
|
||||
#endif
|
||||
|
||||
#if defined(__GLIBC__)
|
||||
# define AK_LIBC_GLIBC
|
||||
# define AK_LIBC_GLIBC_PREREQ(maj, min) __GLIBC_PREREQ((maj), (min))
|
||||
#else
|
||||
# define AK_LIBC_GLIBC_PREREQ(maj, min) 0
|
||||
#endif
|
||||
|
||||
#if defined(__serenity__)
|
||||
# define AK_OS_SERENITY
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue