mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-29 18:08:29 +00:00
include/xrt: Add a bit-width detection define.
This commit is contained in:
parent
d7121e8df4
commit
98b1b11604
|
@ -23,6 +23,11 @@
|
|||
*/
|
||||
#define ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0]))
|
||||
|
||||
#if defined(__x86_64__) || defined(_M_X64) || defined(__aarch64__)
|
||||
#define XRT_64_BIT
|
||||
#else
|
||||
#define XRT_32_BIT
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Printf helper attribute.
|
||||
|
|
Loading…
Reference in a new issue