diff options
author | Craig Tiller <ctiller@google.com> | 2017-04-11 10:46:31 -0700 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2017-04-11 10:46:31 -0700 |
commit | 85db77951c29c3441cf37bf32980b6185a2d14d2 (patch) | |
tree | 673696887616b4a0c0517201f8fb5bd748c2f736 /include/grpc/impl/codegen/port_platform.h | |
parent | 2d111bd2f994c771f8a260cffee9e1c49dc99931 (diff) |
Work around atomics
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..bac409e514 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" |