diff options
author | Jorge Canizales <jcanizales@google.com> | 2015-03-13 14:45:40 -0700 |
---|---|---|
committer | Jorge Canizales <jcanizales@google.com> | 2015-03-13 14:45:40 -0700 |
commit | 30e666cae7d4f8183869869a907c689ced872867 (patch) | |
tree | b33f6f767f0a2207f333a996b8eb0ad786f5bba6 /include/grpc/support/port_platform.h | |
parent | ecf53c6b1b7b0a41598a448bf2020083ab1d5771 (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.h | 4 |
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 |