Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISC Open Source Projects
BIND
Commits
e1ce3a3d
Commit
e1ce3a3d
authored
Dec 19, 2018
by
Ondřej Surý
Browse files
Define __ADDRESS_SANITIZER__ if compiling under clang's AddressSanitizer
parent
16d486ec
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/isc/include/isc/util.h
View file @
e1ce3a3d
...
...
@@ -206,6 +206,11 @@
#define __has_feature(x) 0
#endif
/* GCC defines __ADDRESS_SANITIZER__, so reuse the macro for clang */
#if __has_feature(address_sanitizer)
#define __ADDRESS_SANITIZER__
#endif
#if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR >= 6)
#define STATIC_ASSERT(cond, msg) _Static_assert(cond, msg)
#elif __has_feature(c_static_assert)
...
...
Ondřej Surý
@ondrej
mentioned in commit
afddfcb3
·
Dec 19, 2018
mentioned in commit
afddfcb3
mentioned in commit afddfcb3f5dc59c5d20b3097b02fe4558463c1f9
Toggle commit list
Ondřej Surý
@ondrej
mentioned in commit
9827b8ad
·
Dec 19, 2018
mentioned in commit
9827b8ad
mentioned in commit 9827b8ade9db8b13899d07fe4350b57ac794ce52
Toggle commit list
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment