mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-21 03:55:24 +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: https://github.com/LadybirdBrowser/ladybird/commit/0c2f434e690 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)
|
||||
#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
|
||||
# ifdef AK_OS_WINDOWS
|
||||
// FIXME: No idea where to get this, but it's 4096 anyway :^)
|
||||
|
|
Loading…
Add table
Reference in a new issue