aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/grpc/support/port_platform.h
diff options
context:
space:
mode:
authorGravatar Jorge Canizales <jcanizales@google.com>2015-03-13 14:45:40 -0700
committerGravatar Jorge Canizales <jcanizales@google.com>2015-03-13 14:45:40 -0700
commit30e666cae7d4f8183869869a907c689ced872867 (patch)
treeb33f6f767f0a2207f333a996b8eb0ad786f5bba6 /include/grpc/support/port_platform.h
parentecf53c6b1b7b0a41598a448bf2020083ab1d5771 (diff)
Creates cpu_iphone.c
So that cpu_posix.c can be left untouched for the other platforms.
Diffstat (limited to 'include/grpc/support/port_platform.h')
-rw-r--r--include/grpc/support/port_platform.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/grpc/support/port_platform.h b/include/grpc/support/port_platform.h
index f04c2e76af..fa7ef682ce 100644
--- a/include/grpc/support/port_platform.h
+++ b/include/grpc/support/port_platform.h
@@ -117,7 +117,11 @@
#ifndef _BSD_SOURCE
#define _BSD_SOURCE
#endif
+#ifdef TARGET_OS_IPHONE
+#define GPR_CPU_IPHONE 1
+#else /* TARGET_OS_IPHONE */
#define GPR_CPU_POSIX 1
+#endif
#define GPR_GCC_ATOMIC 1
#define GPR_POSIX_LOG 1
#define GPR_POSIX_MULTIPOLL_WITH_POLL 1