Fixed preprocessor symbol duplication
authorkhizmax <libcds.dev@gmail.com>
Mon, 10 Apr 2017 20:29:37 +0000 (23:29 +0300)
committerkhizmax <libcds.dev@gmail.com>
Mon, 10 Apr 2017 20:29:37 +0000 (23:29 +0300)
cds/compiler/clang/defs.h

index 018981692c2f59a51be9b429df35571c32c02212..246456e8a838e11a0060888047a81082d9bbcf51 100644 (file)
 // *************************************************
 // Features
 #if defined(__has_feature) && __has_feature(thread_sanitizer)
-#   define CDS_THREAD_SANITIZER_ENABLED
+#   ifndef CDS_THREAD_SANITIZER_ENABLED
+#       define CDS_THREAD_SANITIZER_ENABLED
+#   endif
 #endif
 
 #if defined(__has_feature) && __has_feature(address_sanitizer)