mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-12 19:18:20 +00:00
Merge pull request #8915 from Robyt3/Base-Detect-ARM-Redefinition-Fix
Fix redefinition of `CONF_ARCH_STRING` for ARM architectures
This commit is contained in:
commit
337d5c7ab3
|
@ -163,19 +163,19 @@
|
||||||
#define CONF_ARCH_ARM 1
|
#define CONF_ARCH_ARM 1
|
||||||
#define CONF_ARCH_STRING "arm"
|
#define CONF_ARCH_STRING "arm"
|
||||||
#define CONF_ARCH_ENDIAN_BIG 1
|
#define CONF_ARCH_ENDIAN_BIG 1
|
||||||
#endif
|
#elif defined(__ARMEL__)
|
||||||
|
|
||||||
#if defined(__ARMEL__)
|
|
||||||
#define CONF_ARCH_ARM 1
|
#define CONF_ARCH_ARM 1
|
||||||
#define CONF_ARCH_STRING "arm"
|
#define CONF_ARCH_STRING "arm"
|
||||||
#define CONF_ARCH_ENDIAN_LITTLE 1
|
#define CONF_ARCH_ENDIAN_LITTLE 1
|
||||||
#endif
|
#elif defined(__aarch64__) || defined(__arm64__) || defined(__ARM_ARCH_ISA_A64)
|
||||||
|
|
||||||
#if defined(__aarch64__) || defined(__arm64__) || defined(__ARM_ARCH)
|
|
||||||
#define CONF_ARCH_ARM64 1
|
#define CONF_ARCH_ARM64 1
|
||||||
#define CONF_ARCH_STRING "arm64"
|
#define CONF_ARCH_STRING "arm64"
|
||||||
|
#if defined(__ARM_BIG_ENDIAN)
|
||||||
|
#define CONF_ARCH_ENDIAN_BIG 1
|
||||||
|
#else
|
||||||
#define CONF_ARCH_ENDIAN_LITTLE 1
|
#define CONF_ARCH_ENDIAN_LITTLE 1
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef CONF_FAMILY_STRING
|
#ifndef CONF_FAMILY_STRING
|
||||||
#define CONF_FAMILY_STRING "unknown"
|
#define CONF_FAMILY_STRING "unknown"
|
||||||
|
|
Loading…
Reference in a new issue