|
|
@ -234,6 +234,7 @@ |
|
|
|
#define GPR_ARCH_32 1 |
|
|
|
#define GPR_ARCH_32 1 |
|
|
|
#endif /* _LP64 */ |
|
|
|
#endif /* _LP64 */ |
|
|
|
#elif defined(__APPLE__) |
|
|
|
#elif defined(__APPLE__) |
|
|
|
|
|
|
|
#include <Availability.h> |
|
|
|
#include <TargetConditionals.h> |
|
|
|
#include <TargetConditionals.h> |
|
|
|
#ifndef _BSD_SOURCE |
|
|
|
#ifndef _BSD_SOURCE |
|
|
|
#define _BSD_SOURCE |
|
|
|
#define _BSD_SOURCE |
|
|
@ -246,8 +247,18 @@ |
|
|
|
#define GPR_PTHREAD_TLS 1 |
|
|
|
#define GPR_PTHREAD_TLS 1 |
|
|
|
#else /* TARGET_OS_IPHONE */ |
|
|
|
#else /* TARGET_OS_IPHONE */ |
|
|
|
#define GPR_PLATFORM_STRING "osx" |
|
|
|
#define GPR_PLATFORM_STRING "osx" |
|
|
|
|
|
|
|
#ifdef __MAC_OS_X_VERSION_MIN_REQUIRED |
|
|
|
|
|
|
|
#if __MAC_OS_X_VERSION_MIN_REQUIRED < __MAC_10_7 |
|
|
|
|
|
|
|
#define GPR_CPU_IPHONE 1 |
|
|
|
|
|
|
|
#define GPR_PTHREAD_TLS 1 |
|
|
|
|
|
|
|
#else /* __MAC_OS_X_VERSION_MIN_REQUIRED < __MAC_10_7 */ |
|
|
|
|
|
|
|
#define GPR_CPU_POSIX 1 |
|
|
|
|
|
|
|
#define GPR_GCC_TLS 1 |
|
|
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
#else /* __MAC_OS_X_VERSION_MIN_REQUIRED */ |
|
|
|
#define GPR_CPU_POSIX 1 |
|
|
|
#define GPR_CPU_POSIX 1 |
|
|
|
#define GPR_GCC_TLS 1 |
|
|
|
#define GPR_GCC_TLS 1 |
|
|
|
|
|
|
|
#endif |
|
|
|
#define GPR_POSIX_CRASH_HANDLER 1 |
|
|
|
#define GPR_POSIX_CRASH_HANDLER 1 |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
#define GPR_GCC_ATOMIC 1 |
|
|
|
#define GPR_GCC_ATOMIC 1 |
|
|
|