diff options
author | Craig Tiller <ctiller@google.com> | 2017-04-12 06:46:48 -0700 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2017-04-12 06:46:48 -0700 |
commit | 75897a990106507aa08b8ffdb9bd460080e2de76 (patch) | |
tree | 67a5346ad014fe571ae6b179795272186b59c2c4 /include/grpc/impl/codegen/port_platform.h | |
parent | c5400dfe2f827b5d169037d68d92a4c6497cd953 (diff) | |
parent | a566685f99d423f34c69678b2b7cbca85d974210 (diff) |
Merge branch 'c++lame' of github.com:ctiller/grpc into c++lame
Diffstat (limited to 'include/grpc/impl/codegen/port_platform.h')
-rw-r--r-- | include/grpc/impl/codegen/port_platform.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/grpc/impl/codegen/port_platform.h b/include/grpc/impl/codegen/port_platform.h index 813e08b86e..a828f6c188 100644 --- a/include/grpc/impl/codegen/port_platform.h +++ b/include/grpc/impl/codegen/port_platform.h @@ -290,6 +290,12 @@ #endif #endif /* GPR_NO_AUTODETECT_PLATFORM */ +#if defined(__has_include) +#if __has_include(<atomic>) +#define GRPC_HAS_CXX11_ATOMIC +#endif /* __has_include(<atomic>) */ +#endif /* defined(__has_include) */ + #ifndef GPR_PLATFORM_STRING #warning "GPR_PLATFORM_STRING not auto-detected" #define GPR_PLATFORM_STRING "unknown" |