diff options
author | Craig Tiller <ctiller@google.com> | 2017-09-06 13:33:14 -0700 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2017-09-06 13:33:14 -0700 |
commit | b8fcff171adeba98f96ea74e8a18a1b6aa4c9a8d (patch) | |
tree | 5b740428a2008be3b7b9a6b5a04b9f2eff9cf544 /include/grpc/impl/codegen/port_platform.h | |
parent | 53e96fe773c48bff7c8037692e51337da6b0f012 (diff) |
Compile fix
Diffstat (limited to 'include/grpc/impl/codegen/port_platform.h')
-rw-r--r-- | include/grpc/impl/codegen/port_platform.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/include/grpc/impl/codegen/port_platform.h b/include/grpc/impl/codegen/port_platform.h index 5bbab70c6a..c80c679c98 100644 --- a/include/grpc/impl/codegen/port_platform.h +++ b/include/grpc/impl/codegen/port_platform.h @@ -409,10 +409,15 @@ typedef unsigned __int64 uint64_t; #define CENSUSAPI GRPCAPI #endif +#ifndef GPR_ATTRIBUTE_NO_TSAN // (1) #if defined(__has_feature) #if __has_feature(thread_sanitizer) #define GPR_ATTRIBUTE_NO_TSAN __attribute__((no_sanitize("thread"))) -#endif -#endif +#endif // __has_feature(thread_sanitizer) +#endif // defined(__has_feature) +#ifndef GPR_ATTRIBUTE_NO_TSAN // (2) +#define GPR_ATTRIBUTE_NO_TSAN +#endif // GPR_ATTRIBUTE_NO_TSAN (2) +#endif // GPR_ATTRIBUTE_NO_TSAN (1) #endif /* GRPC_IMPL_CODEGEN_PORT_PLATFORM_H */ |