|
|
|
@ -90,10 +90,8 @@ |
|
|
|
|
#endif |
|
|
|
|
#define GPR_PLATFORM_STRING "windows" |
|
|
|
|
#define GPR_WINDOWS 1 |
|
|
|
|
#define GPR_WINSOCK_SOCKET 1 |
|
|
|
|
#define GPR_WINDOWS_SUBPROCESS 1 |
|
|
|
|
#define GPR_WINDOWS_ENV |
|
|
|
|
#define GPR_WINDOWS_SOCKETUTILS |
|
|
|
|
#ifdef __MSYS__ |
|
|
|
|
#define GPR_GETPID_IN_UNISTD_H 1 |
|
|
|
|
#define GPR_MSYS_TMPFILE |
|
|
|
@ -125,15 +123,7 @@ |
|
|
|
|
#define GPR_GCC_TLS 1 |
|
|
|
|
#define GPR_LINUX 1 |
|
|
|
|
#define GPR_LINUX_LOG 1 |
|
|
|
|
#define GPR_POSIX_SOCKET 1 |
|
|
|
|
#define GPR_POSIX_WAKEUP_FD 1 |
|
|
|
|
#define GPR_POSIX_SOCKETADDR 1 |
|
|
|
|
#define GPR_POSIX_NO_SPECIAL_WAKEUP_FD 1 |
|
|
|
|
#define GPR_POSIX_SOCKETUTILS 1 |
|
|
|
|
#define GPR_SUPPORT_CHANNELS_FROM_FD 1 |
|
|
|
|
#define GPR_HAVE_UNIX_SOCKET 1 |
|
|
|
|
#define GPR_HAVE_IP_PKTINFO 1 |
|
|
|
|
#define GPR_HAVE_IPV6_RECVPKTINFO 1 |
|
|
|
|
#define GPR_LINUX_ENV 1 |
|
|
|
|
#define GPR_POSIX_FILE 1 |
|
|
|
|
#define GPR_POSIX_TMPFILE 1 |
|
|
|
@ -142,7 +132,6 @@ |
|
|
|
|
#define GPR_POSIX_SYNC 1 |
|
|
|
|
#define GPR_POSIX_TIME 1 |
|
|
|
|
#define GPR_GETPID_IN_UNISTD_H 1 |
|
|
|
|
#define GPR_HAVE_MSG_NOSIGNAL 1 |
|
|
|
|
#ifdef _LP64 |
|
|
|
|
#define GPR_ARCH_64 1 |
|
|
|
|
#else /* _LP64 */ |
|
|
|
@ -159,12 +148,6 @@ |
|
|
|
|
#define GPR_CPU_LINUX 1 |
|
|
|
|
#define GPR_GCC_SYNC 1 |
|
|
|
|
#define GPR_GCC_TLS 1 |
|
|
|
|
#define GPR_POSIX_MULTIPOLL_WITH_POLL 1 |
|
|
|
|
#define GPR_POSIX_WAKEUP_FD 1 |
|
|
|
|
#define GPR_LINUX_EVENTFD 1 |
|
|
|
|
#define GPR_POSIX_SOCKET 1 |
|
|
|
|
#define GPR_POSIX_SOCKETADDR 1 |
|
|
|
|
#define GPR_POSIX_SOCKETUTILS 1 |
|
|
|
|
#define GPR_POSIX_ENV 1 |
|
|
|
|
#define GPR_POSIX_FILE 1 |
|
|
|
|
#define GPR_POSIX_TMPFILE 1 |
|
|
|
@ -175,10 +158,6 @@ |
|
|
|
|
#define GPR_POSIX_TIME 1 |
|
|
|
|
#define GPR_GETPID_IN_UNISTD_H 1 |
|
|
|
|
#define GPR_SUPPORT_CHANNELS_FROM_FD 1 |
|
|
|
|
#define GPR_HAVE_MSG_NOSIGNAL 1 |
|
|
|
|
#define GPR_HAVE_UNIX_SOCKET 1 |
|
|
|
|
#define GPR_HAVE_IP_PKTINFO 1 |
|
|
|
|
#define GPR_HAVE_IPV6_RECVPKTINFO 1 |
|
|
|
|
#elif defined(__linux__) |
|
|
|
|
#define GPR_POSIX_CRASH_HANDLER 1 |
|
|
|
|
#define GPR_PLATFORM_STRING "linux" |
|
|
|
@ -197,30 +176,11 @@ |
|
|
|
|
#define GPR_GCC_TLS 1 |
|
|
|
|
#define GPR_LINUX 1 |
|
|
|
|
#define GPR_LINUX_LOG |
|
|
|
|
#define GPR_LINUX_MULTIPOLL_WITH_EPOLL 1 |
|
|
|
|
#define GPR_POSIX_WAKEUP_FD 1 |
|
|
|
|
#define GPR_POSIX_SOCKET 1 |
|
|
|
|
#define GPR_POSIX_SOCKETADDR 1 |
|
|
|
|
#define GPR_SUPPORT_CHANNELS_FROM_FD 1 |
|
|
|
|
#define GPR_HAVE_UNIX_SOCKET 1 |
|
|
|
|
#define GPR_HAVE_IP_PKTINFO 1 |
|
|
|
|
#define GPR_HAVE_IPV6_RECVPKTINFO 1 |
|
|
|
|
#ifdef __GLIBC_PREREQ |
|
|
|
|
#if __GLIBC_PREREQ(2, 9) |
|
|
|
|
#define GPR_LINUX_EVENTFD 1 |
|
|
|
|
#define GPR_LINUX_EPOLL 1 |
|
|
|
|
#endif |
|
|
|
|
#if __GLIBC_PREREQ(2, 10) |
|
|
|
|
#define GPR_LINUX_SOCKETUTILS 1 |
|
|
|
|
#endif |
|
|
|
|
#endif |
|
|
|
|
#define GPR_LINUX_ENV 1 |
|
|
|
|
#ifndef GPR_LINUX_EVENTFD |
|
|
|
|
#define GPR_POSIX_NO_SPECIAL_WAKEUP_FD 1 |
|
|
|
|
#endif |
|
|
|
|
#ifndef GPR_LINUX_SOCKETUTILS |
|
|
|
|
#define GPR_POSIX_SOCKETUTILS |
|
|
|
|
#endif |
|
|
|
|
#define GPR_POSIX_FILE 1 |
|
|
|
|
#define GPR_POSIX_TMPFILE 1 |
|
|
|
|
#define GPR_POSIX_STRING 1 |
|
|
|
@ -228,7 +188,6 @@ |
|
|
|
|
#define GPR_POSIX_SYNC 1 |
|
|
|
|
#define GPR_POSIX_TIME 1 |
|
|
|
|
#define GPR_GETPID_IN_UNISTD_H 1 |
|
|
|
|
#define GPR_HAVE_MSG_NOSIGNAL 1 |
|
|
|
|
#ifdef _LP64 |
|
|
|
|
#define GPR_ARCH_64 1 |
|
|
|
|
#else /* _LP64 */ |
|
|
|
@ -239,7 +198,6 @@ |
|
|
|
|
#ifndef _BSD_SOURCE |
|
|
|
|
#define _BSD_SOURCE |
|
|
|
|
#endif |
|
|
|
|
#define GPR_MSG_IOVLEN_TYPE int |
|
|
|
|
#if TARGET_OS_IPHONE |
|
|
|
|
#define GPR_FORBID_UNREACHABLE_CODE 1 |
|
|
|
|
#define GPR_PLATFORM_STRING "ios" |
|
|
|
@ -251,14 +209,9 @@ |
|
|
|
|
#define GPR_GCC_TLS 1 |
|
|
|
|
#define GPR_POSIX_CRASH_HANDLER 1 |
|
|
|
|
#endif |
|
|
|
|
#define GPR_APPLE 1 |
|
|
|
|
#define GPR_GCC_ATOMIC 1 |
|
|
|
|
#define GPR_POSIX_LOG 1 |
|
|
|
|
#define GPR_POSIX_MULTIPOLL_WITH_POLL 1 |
|
|
|
|
#define GPR_POSIX_WAKEUP_FD 1 |
|
|
|
|
#define GPR_POSIX_NO_SPECIAL_WAKEUP_FD 1 |
|
|
|
|
#define GPR_POSIX_SOCKET 1 |
|
|
|
|
#define GPR_POSIX_SOCKETADDR 1 |
|
|
|
|
#define GPR_POSIX_SOCKETUTILS 1 |
|
|
|
|
#define GPR_POSIX_ENV 1 |
|
|
|
|
#define GPR_POSIX_FILE 1 |
|
|
|
|
#define GPR_POSIX_TMPFILE 1 |
|
|
|
@ -268,9 +221,6 @@ |
|
|
|
|
#define GPR_POSIX_TIME 1 |
|
|
|
|
#define GPR_GETPID_IN_UNISTD_H 1 |
|
|
|
|
#define GPR_SUPPORT_CHANNELS_FROM_FD 1 |
|
|
|
|
#define GPR_HAVE_SO_NOSIGPIPE 1 |
|
|
|
|
#define GPR_HAVE_UNIX_SOCKET 1 |
|
|
|
|
#define GPR_HAVE_IP_PKTINFO 1 |
|
|
|
|
#ifdef _LP64 |
|
|
|
|
#define GPR_ARCH_64 1 |
|
|
|
|
#else /* _LP64 */ |
|
|
|
@ -281,16 +231,11 @@ |
|
|
|
|
#ifndef _BSD_SOURCE |
|
|
|
|
#define _BSD_SOURCE |
|
|
|
|
#endif |
|
|
|
|
#define GPR_FREEBSD 1 |
|
|
|
|
#define GPR_CPU_POSIX 1 |
|
|
|
|
#define GPR_GCC_ATOMIC 1 |
|
|
|
|
#define GPR_GCC_TLS 1 |
|
|
|
|
#define GPR_POSIX_LOG 1 |
|
|
|
|
#define GPR_POSIX_MULTIPOLL_WITH_POLL 1 |
|
|
|
|
#define GPR_POSIX_WAKEUP_FD 1 |
|
|
|
|
#define GPR_POSIX_NO_SPECIAL_WAKEUP_FD 1 |
|
|
|
|
#define GPR_POSIX_SOCKET 1 |
|
|
|
|
#define GPR_POSIX_SOCKETADDR 1 |
|
|
|
|
#define GPR_POSIX_SOCKETUTILS 1 |
|
|
|
|
#define GPR_POSIX_ENV 1 |
|
|
|
|
#define GPR_POSIX_FILE 1 |
|
|
|
|
#define GPR_POSIX_TMPFILE 1 |
|
|
|
@ -300,10 +245,6 @@ |
|
|
|
|
#define GPR_POSIX_TIME 1 |
|
|
|
|
#define GPR_GETPID_IN_UNISTD_H 1 |
|
|
|
|
#define GPR_SUPPORT_CHANNELS_FROM_FD 1 |
|
|
|
|
#define GPR_HAVE_SO_NOSIGPIPE 1 |
|
|
|
|
#define GPR_HAVE_UNIX_SOCKET 1 |
|
|
|
|
#define GPR_HAVE_IP_PKTINFO 1 |
|
|
|
|
#define GPR_HAVE_IPV6_RECVPKTINFO 1 |
|
|
|
|
#ifdef _LP64 |
|
|
|
|
#define GPR_ARCH_64 1 |
|
|
|
|
#else /* _LP64 */ |
|
|
|
@ -320,16 +261,11 @@ |
|
|
|
|
#ifndef _GNU_SOURCE |
|
|
|
|
#define _GNU_SOURCE |
|
|
|
|
#endif |
|
|
|
|
#define GPR_NACL 1 |
|
|
|
|
#define GPR_CPU_POSIX 1 |
|
|
|
|
#define GPR_GCC_ATOMIC 1 |
|
|
|
|
#define GPR_GCC_TLS 1 |
|
|
|
|
#define GPR_POSIX_LOG 1 |
|
|
|
|
#define GPR_POSIX_MULTIPOLL_WITH_POLL 1 |
|
|
|
|
#define GPR_POSIX_WAKEUP_FD 1 |
|
|
|
|
#define GPR_POSIX_NO_SPECIAL_WAKEUP_FD 1 |
|
|
|
|
#define GPR_POSIX_SOCKET 1 |
|
|
|
|
#define GPR_POSIX_SOCKETADDR 1 |
|
|
|
|
#define GPR_POSIX_SOCKETUTILS 1 |
|
|
|
|
#define GPR_POSIX_ENV 1 |
|
|
|
|
#define GPR_POSIX_FILE 1 |
|
|
|
|
#define GPR_POSIX_TMPFILE 1 |
|
|
|
@ -416,12 +352,6 @@ typedef unsigned __int64 uint64_t; |
|
|
|
|
#error Must define GPR_POSIX_SOCKET to use GPR_POSIX_MULTIPOLL_WITH_POLL |
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
#if defined(GPR_POSIX_SOCKET) + defined(GPR_WINSOCK_SOCKET) + \ |
|
|
|
|
defined(GPR_CUSTOM_SOCKET) != \
|
|
|
|
|
1 |
|
|
|
|
#error Must define exactly one of GPR_POSIX_SOCKET, GPR_WINSOCK_SOCKET, GPR_CUSTOM_SOCKET |
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
#if defined(GPR_MSVC_TLS) + defined(GPR_GCC_TLS) + defined(GPR_PTHREAD_TLS) + \ |
|
|
|
|
defined(GPR_CUSTOM_TLS) != \
|
|
|
|
|
1 |
|
|
|
|