From 0a2c99f1dc30bdc3e538cc14f5df4d780fb1c1bb Mon Sep 17 00:00:00 2001 From: topjohnwu Date: Wed, 22 Jan 2020 01:20:14 +0800 Subject: [PATCH] Use __LP64__ to detect 64 bit --- native/jni/core/db.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/native/jni/core/db.cpp b/native/jni/core/db.cpp index 7922a6e7c..3ba9c790b 100644 --- a/native/jni/core/db.cpp +++ b/native/jni/core/db.cpp @@ -56,7 +56,7 @@ static void (*android_update_LD_LIBRARY_PATH)(const char *ld_library_path); *(void **) &(arg) = f; \ } -#if defined(__aarch64__) || defined(__x86_64__) +#ifdef __LP64__ constexpr char apex_path[] = ":/apex/com.android.runtime/lib64"; #else constexpr char apex_path[] = ":/apex/com.android.runtime/lib";