xrt: Fix FTBFS on ppc64, s390x

This commit is contained in:
Ryan Pavlik 2020-04-09 17:56:12 -05:00 committed by Jakob Bornecrantz
parent 7fab448cf0
commit b8b6e958f2

View file

@ -23,7 +23,9 @@
*/ */
#define ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0])) #define ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0]))
#if defined(__x86_64__) || defined(_M_X64) || defined(__aarch64__) #if defined(__x86_64__) || defined(_M_X64) || defined(__aarch64__) || \
defined(_ARCH_PPC64) || defined(__s390x__) || \
(defined(__SIZEOF_POINTER__) && __SIZEOF_POINTER__ == 8)
#define XRT_64_BIT #define XRT_64_BIT
#else #else
#define XRT_32_BIT #define XRT_32_BIT