aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorGravatar Tamas Berghammer <tberghammer@google.com>2016-04-28 10:35:34 +0100
committerGravatar Tamas Berghammer <tberghammer@google.com>2016-04-28 10:43:41 +0100
commitcb2125577c3ab81aab3554221dc9171904ac231e (patch)
treef3825e5a03ae0640d64a8a2360d421df23573c97 /include
parente107f8e6884b2f8edec17869bbe0d42f35e88445 (diff)
Add 64bit Android support
Since Android Lollipop (5.0) Android has 64bit support. This config change is needed to support these configurations. The code have been tested with AArch64 and no other changes needed to get the helloworld example working.
Diffstat (limited to 'include')
-rw-r--r--include/grpc/impl/codegen/port_platform.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/grpc/impl/codegen/port_platform.h b/include/grpc/impl/codegen/port_platform.h
index 1229d488ed..0ac9324b38 100644
--- a/include/grpc/impl/codegen/port_platform.h
+++ b/include/grpc/impl/codegen/port_platform.h
@@ -117,7 +117,11 @@
#elif defined(ANDROID) || defined(__ANDROID__)
#define GPR_PLATFORM_STRING "android"
#define GPR_ANDROID 1
+#ifdef _LP64
+#define GPR_ARCH_64 1
+#else /* _LP64 */
#define GPR_ARCH_32 1
+#endif /* _LP64 */
#define GPR_CPU_LINUX 1
#define GPR_GCC_SYNC 1
#define GPR_GCC_TLS 1