diff options
Diffstat (limited to 'src/basic')
-rw-r--r-- | src/basic/macro.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/basic/macro.h b/src/basic/macro.h index 42ee753532..2213d4b9ac 100644 --- a/src/basic/macro.h +++ b/src/basic/macro.h @@ -61,7 +61,9 @@ #endif #if !defined(HAS_FEATURE_ADDRESS_SANITIZER) -# if defined(__has_feature) +# ifdef __SANITIZE_ADDRESS__ +# define HAS_FEATURE_ADDRESS_SANITIZER 1 +# elif defined(__has_feature) # if __has_feature(address_sanitizer) # define HAS_FEATURE_ADDRESS_SANITIZER 1 # endif |