aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/grpc/impl/codegen/port_platform.h
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2017-04-12 06:46:48 -0700
committerGravatar Craig Tiller <ctiller@google.com>2017-04-12 06:46:48 -0700
commit75897a990106507aa08b8ffdb9bd460080e2de76 (patch)
tree67a5346ad014fe571ae6b179795272186b59c2c4 /include/grpc/impl/codegen/port_platform.h
parentc5400dfe2f827b5d169037d68d92a4c6497cd953 (diff)
parenta566685f99d423f34c69678b2b7cbca85d974210 (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.h6
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"