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 39 #define XN_PLATFORM_IS_LITTLE_ENDIAN 1 40 #define XN_PLATFORM_IS_BIG_ENDIAN 2 42 #define XN_PLATFORM_USE_NO_VAARGS 1 43 #define XN_PLATFORM_USE_WIN32_VAARGS_STYLE 2 44 #define XN_PLATFORM_USE_GCC_VAARGS_STYLE 3 45 #define XN_PLATFORM_USE_ARC_VAARGS_STYLE 4 51 #if defined(_WIN32) // Microsoft Visual Studio 53 #if _MSC_VER < 1300 // Before MSVC7 (2003) 54 #error Xiron Platform Abstraction Layer - Win32 - Microsoft Visual Studio versions below 2003 (7.0) are not supported! 57 #if _MSC_VER > 1600 // After MSVC8 (2010) 58 #error Xiron Platform Abstraction Layer - Win32 - Microsoft Visual Studio versions above 2010 (10.0) are not supported! 62 #include "Win32/XnPlatformWin32.h" 63 #elif defined(ANDROID) && defined(__arm__) 64 #include "Android-Arm/XnPlatformAndroid-Arm.h" 65 #elif (__linux__ && (i386 || __x86_64__)) 66 #include "Linux-x86/XnPlatformLinux-x86.h" 67 #elif (__linux__ && __arm__) 68 #include "Linux-Arm/XnPlatformLinux-Arm.h" 70 #include "ARC/XnPlatformARC.h" 72 #include "MacOSX/XnPlatformMacOSX.h" 74 #error OpenNI Platform Abstraction Layer - Unsupported Platform! 88 #define XN_MIN(a,b) (((a) < (b)) ? (a) : (b)) 90 #define XN_MAX(a,b) (((a) > (b)) ? (a) : (b)) 94 #define XN_COMPILER_ASSERT(x) typedef int compileAssert[x ? 1 : -1] 101 #define XN_C_API_EXPORT extern "C" XN_API_EXPORT 102 #define XN_C_API_IMPORT extern "C" XN_API_IMPORT 103 #define XN_CPP_API_EXPORT XN_API_EXPORT 104 #define XN_CPP_API_IMPORT XN_API_IMPORT 106 #define XN_C_API_EXPORT XN_API_EXPORT 107 #define XN_C_API_IMPORT XN_API_IMPORT 111 #define XN_C_API XN_C_API_EXPORT 112 #define XN_CPP_API XN_CPP_API_EXPORT 114 #define XN_C_API XN_C_API_IMPORT 115 #define XN_CPP_API XN_CPP_API_IMPORT 118 #endif //__XN_PLATFORM_H__