21 #ifndef __XN_PLATFORM_H__ 22 #define __XN_PLATFORM_H__ 27 #define XN_PLATFORM_WIN32 1 28 #define XN_PLATFORM_XBOX360 2 29 #define XN_PLATFORM_PS3 3 30 #define XN_PLATFORM_WII 4 31 #define XN_PLATFORM_LINUX_X86 5 32 #define XN_PLATFORM_FILES_ONLY 6 33 #define XN_PLATFORM_ARC 6 34 #define XN_PLATFORM_LINUX_ARM 7 35 #define XN_PLATFORM_LINUX_POWERPC 10 36 #define XN_PLATFORM_LINUX_AARCH64 11 37 #define XN_PLATFORM_LINUX_MIPS 12 39 #define XN_PLATFORM_MACOSX 8 40 #define XN_PLATFORM_ANDROID_ARM 9 42 #define XN_PLATFORM_IS_LITTLE_ENDIAN 1 43 #define XN_PLATFORM_IS_BIG_ENDIAN 2 45 #define XN_PLATFORM_USE_NO_VAARGS 1 46 #define XN_PLATFORM_USE_WIN32_VAARGS_STYLE 2 47 #define XN_PLATFORM_USE_GCC_VAARGS_STYLE 3 48 #define XN_PLATFORM_USE_ARC_VAARGS_STYLE 4 54 #if defined(_WIN32) // Microsoft Visual Studio 56 #if _MSC_VER < 1300 // Before MSVC7 (2003) 57 #error Xiron Platform Abstraction Layer - Win32 - Microsoft Visual Studio versions below 2003 (7.0) are not supported! 60 #if _MSC_VER > 1600 // After MSVC8 (2010) 61 #error Xiron Platform Abstraction Layer - Win32 - Microsoft Visual Studio versions above 2010 (10.0) are not supported! 65 #include "Win32/XnPlatformWin32.h" 66 #elif defined(ANDROID) && defined(__arm__) 67 #include "Android-Arm/XnPlatformAndroid-Arm.h" 68 #elif (linux && (i386 || __x86_64__)) 69 #include "Linux-x86/XnPlatformLinux-x86.h" 70 #elif (linux && __arm__) 71 #include "Linux-Arm/XnPlatformLinux-Arm.h" 72 #elif (__linux__ && __aarch64__) 73 #include "Linux-AArch64/XnPlatformLinux-AArch64.h" 74 #elif (__linux__ && __powerpc__) 75 #include "Linux-Powerpc/XnPlatformLinux-Powerpc.h" 76 #elif (__linux__ && __mips__) 77 #include "Linux-Mips/XnPlatformLinux-Mips.h" 79 #include "ARC/XnPlatformARC.h" 81 #include "MacOSX/XnPlatformMacOSX.h" 83 #if defined __INTEL_COMPILER 84 #include "Linux/XnPlatformLinux.h" 86 #error OpenNI Platform Abstraction Layer - Unsupported Platform! 102 #define XN_MIN(a,b) (((a) < (b)) ? (a) : (b)) 104 #define XN_MAX(a,b) (((a) > (b)) ? (a) : (b)) 108 #define XN_COMPILER_ASSERT(x) typedef int compileAssert[x ? 1 : -1] 110 struct XnRegistrationHandleImpl;
118 #define XN_C_API_EXPORT extern "C" XN_API_EXPORT 119 #define XN_C_API_IMPORT extern "C" XN_API_IMPORT 120 #define XN_CPP_API_EXPORT XN_API_EXPORT 121 #define XN_CPP_API_IMPORT XN_API_IMPORT 123 #define XN_C_API_EXPORT XN_API_EXPORT 124 #define XN_C_API_IMPORT XN_API_IMPORT 128 #define XN_C_API XN_C_API_EXPORT 129 #define XN_CPP_API XN_CPP_API_EXPORT 131 #define XN_C_API XN_C_API_IMPORT 132 #define XN_CPP_API XN_CPP_API_IMPORT 135 #endif //__XN_PLATFORM_H__