22#ifndef __XN_PLATFORM_H__
23#define __XN_PLATFORM_H__
28#define XN_PLATFORM_WIN32 1
29#define XN_PLATFORM_XBOX360 2
30#define XN_PLATFORM_PS3 3
31#define XN_PLATFORM_WII 4
32#define XN_PLATFORM_LINUX_X86 5
33#define XN_PLATFORM_FILES_ONLY 6
34#define XN_PLATFORM_ARC 6
35#define XN_PLATFORM_LINUX_ARM 7
36#define XN_PLATFORM_MACOSX 8
37#define XN_PLATFORM_ANDROID_ARM 9
38#define XN_PLATFORM_LINUX_POWERPC 10
39#define XN_PLATFORM_LINUX_AARCH64 11
40#define XN_PLATFORM_LINUX_MIPS 12
41#define XN_PLATFORM_LINUX_RISCV64 13
42#define XN_PLATFORM_LINUX_LOONGARCH64 14
44#define XN_PLATFORM_IS_LITTLE_ENDIAN 1
45#define XN_PLATFORM_IS_BIG_ENDIAN 2
47#define XN_PLATFORM_USE_NO_VAARGS 1
48#define XN_PLATFORM_USE_WIN32_VAARGS_STYLE 2
49#define XN_PLATFORM_USE_GCC_VAARGS_STYLE 3
50#define XN_PLATFORM_USE_ARC_VAARGS_STYLE 4
59 #error Xiron Platform Abstraction Layer - Win32 - Microsoft Visual Studio versions below 2003 (7.0) are not supported!
63 #error Xiron Platform Abstraction Layer - Win32 - Microsoft Visual Studio versions above 2010 (10.0) are not supported!
67 #include "Win32/XnPlatformWin32.h"
68#elif defined(ANDROID) && defined(__arm__)
69 #include "Android-Arm/XnPlatformAndroid-Arm.h"
70#elif (__linux__ && (__i386__ || __x86_64__))
71 #include "Linux-x86/XnPlatformLinux-x86.h"
72#elif (__linux__ && __arm__)
73 #include "Linux-Arm/XnPlatformLinux-Arm.h"
74#elif (__linux__ && __aarch64__)
75 #include "Linux-AArch64/XnPlatformLinux-AArch64.h"
76#elif (__linux__ && __powerpc__)
77 #include "Linux-Powerpc/XnPlatformLinux-Powerpc.h"
78#elif (__linux__ && __mips__)
79 #include "Linux-Mips/XnPlatformLinux-Mips.h"
80#elif (__linux__ && (__riscv && __riscv_xlen == 64))
81 #include "Linux-Riscv64/XnPlatformLinux-Riscv64.h"
82#elif (__linux__ && __loongarch__)
83 #include "Linux-Loongarch64/XnPlatformLinux-Loongarch64.h"
85 #include "ARC/XnPlatformARC.h"
87 #include "MacOSX/XnPlatformMacOSX.h"
89 #error OpenNI Platform Abstraction Layer - Unsupported Platform!
103#define XN_MIN(a,b) (((a) < (b)) ? (a) : (b))
105#define XN_MAX(a,b) (((a) > (b)) ? (a) : (b))
109#define XN_COMPILER_ASSERT(x) typedef int compileAssert[x ? 1 : -1]
111struct XnRegistrationHandleImpl;
119 #define XN_C_API_EXPORT extern "C" XN_API_EXPORT
120 #define XN_C_API_IMPORT extern "C" XN_API_IMPORT
121 #define XN_CPP_API_EXPORT XN_API_EXPORT
122 #define XN_CPP_API_IMPORT XN_API_IMPORT
124 #define XN_C_API_EXPORT XN_API_EXPORT
125 #define XN_C_API_IMPORT XN_API_IMPORT
129 #define XN_C_API XN_C_API_EXPORT
130 #define XN_CPP_API XN_CPP_API_EXPORT
132 #define XN_C_API XN_C_API_IMPORT
133 #define XN_CPP_API XN_CPP_API_IMPORT