Use __LP64__ to detect 64 bit

This commit is contained in:
topjohnwu 2020-01-22 01:20:14 +08:00
parent 836bfbdd02
commit 0a2c99f1dc

View File

@ -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";