mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-02 07:37:03 +00:00
AK: Add feature detection for -fblocks and -fobjc-arc
This commit is contained in:
parent
1148116a87
commit
0c2f434e69
Notes:
github-actions[bot]
2025-03-18 23:16:29 +00:00
Author: https://github.com/ADKaster
Commit: 0c2f434e69
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3963
Reviewed-by: https://github.com/alimpfard
Reviewed-by: https://github.com/bugaevc
1 changed files with 8 additions and 0 deletions
|
@ -265,6 +265,14 @@
|
||||||
# define LSAN_UNREGISTER_ROOT_REGION(base, size)
|
# define LSAN_UNREGISTER_ROOT_REGION(base, size)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if __has_feature(blocks)
|
||||||
|
# define AK_HAS_BLOCKS
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if __has_feature(objc_arc)
|
||||||
|
# define AK_HAS_OBJC_ARC
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef AK_OS_SERENITY
|
#ifndef AK_OS_SERENITY
|
||||||
# ifdef AK_OS_WINDOWS
|
# ifdef AK_OS_WINDOWS
|
||||||
// FIXME: No idea where to get this, but it's 4096 anyway :^)
|
// FIXME: No idea where to get this, but it's 4096 anyway :^)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue