Permalink
Browse files

qcommon: added ANDROID Platform recognition in q_platform.h ( armeabi…

… is depracated in newest NDK ) so just armeabi_v7a and arm64-v8a is supported and skip x86, x86_64 support since not many ppl are using those.
  • Loading branch information...
rafal1137 committed Nov 7, 2018
1 parent 8d339d0 commit 390e72ea368755697bea48d4ff1a1220a193d289
Showing with 32 additions and 0 deletions.
  1. +32 −0 src/qcommon/q_platform.h
@@ -340,6 +340,38 @@
#endif
//=============================================================== ANDROID ===
#ifdef __ANDROID__
#define OS_STRING "android"
#define ID_INLINE inline
#define PATH_SEP '/'
#if defined __arm__
#if defined __ARM_ARCH_7A__
#if defined __ARM_NEON__
#define ARCH_STRING "armeabi_neon-v7a"
#else
#define ARCH_STRING "armeabi-v7a"
#endif
#endif
#elif defined __aarch64__
#if defined __ARM_ARCH_ISA_A64
#define ARCH_STRING "arm64-v8a"
#endif
#endif
#if __FLOAT_WORD_ORDER == __BIG_ENDIAN
#define Q3_BIG_ENDIAN
#else
#define Q3_LITTLE_ENDIAN
#endif
#define DLL_EXT ".so"
#endif
//===========================================================================
//catch missing defines in above blocks

0 comments on commit 390e72e

Please sign in to comment.