Skip to content

Commit

Permalink
Support GCC extension for AddressSanitizer
Browse files Browse the repository at this point in the history
  • Loading branch information
ibuclaw committed Jun 22, 2015
1 parent 36320a2 commit c3cf997
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/root/newdelete.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,11 @@
#include <string.h>

#if defined(__has_feature)
#if __has_feature(address_sanitizer)
#define USE_ASAN_NEW_DELETE
#endif
# if __has_feature(address_sanitizer)
# define USE_ASAN_NEW_DELETE
# endif
#elif defined(__SANITIZE_ADDRESS__)
# define USE_ASAN_NEW_DELETE
#endif

#if !defined(USE_ASAN_NEW_DELETE)
Expand Down

0 comments on commit c3cf997

Please sign in to comment.