projects
/
systemd
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
289acab
)
macro: define HAS_FEATURE_ADDRESS_SANITIZER also on gcc
author
Lennart Poettering
<lennart@poettering.net>
Mon, 3 Dec 2018 16:30:19 +0000
(17:30 +0100)
committer
Lennart Poettering
<lennart@poettering.net>
Mon, 3 Dec 2018 16:35:50 +0000
(17:35 +0100)
Let's make differences between compilers more minimal.
src/basic/macro.h
patch
|
blob
|
history
diff --git
a/src/basic/macro.h
b/src/basic/macro.h
index 42ee753532eac5dd5f1d98722316cc1964fec5ea..2213d4b9ac9d56ed8e6ad050a4d0f2f0d81123cf 100644
(file)
--- 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