XnPlatform.h
Go to the documentation of this file.
00001 /*****************************************************************************
00002 *                                                                            *
00003 *  OpenNI 1.0 Alpha                                                          *
00004 *  Copyright (C) 2010 PrimeSense Ltd.                                        *
00005 *                                                                            *
00006 *  This file is part of OpenNI.                                              *
00007 *                                                                            *
00008 *  OpenNI is free software: you can redistribute it and/or modify            *
00009 *  it under the terms of the GNU Lesser General Public License as published  *
00010 *  by the Free Software Foundation, either version 3 of the License, or      *
00011 *  (at your option) any later version.                                       *
00012 *                                                                            *
00013 *  OpenNI is distributed in the hope that it will be useful,                 *
00014 *  but WITHOUT ANY WARRANTY; without even the implied warranty of            *
00015 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the              *
00016 *  GNU Lesser General Public License for more details.                       *
00017 *                                                                            *
00018 *  You should have received a copy of the GNU Lesser General Public License  *
00019 *  along with OpenNI. If not, see <http://www.gnu.org/licenses/>.            *
00020 *                                                                            *
00021 *****************************************************************************/
00022 
00023 
00024 
00025 
00026 #ifndef __XN_PLATFORM_H__
00027 #define __XN_PLATFORM_H__
00028 
00029 //---------------------------------------------------------------------------
00030 // Platform Defines
00031 //---------------------------------------------------------------------------
00032 #define XN_PLATFORM_WIN32 1
00033 #define XN_PLATFORM_XBOX360 2
00034 #define XN_PLATFORM_PS3 3
00035 #define XN_PLATFORM_WII 4
00036 #define XN_PLATFORM_LINUX_X86 5
00037 #define XN_PLATFORM_FILES_ONLY 6
00038 #define XN_PLATFORM_ARC 6
00039 #define XN_PLATFORM_LINUX_ARM 7
00040 
00041 #define XN_PLATFORM_IS_LITTLE_ENDIAN 1
00042 #define XN_PLATFORM_IS_BIG_ENDIAN    2
00043 
00044 #define XN_PLATFORM_USE_NO_VAARGS 1
00045 #define XN_PLATFORM_USE_WIN32_VAARGS_STYLE 2
00046 #define XN_PLATFORM_USE_GCC_VAARGS_STYLE   3
00047 #define XN_PLATFORM_USE_ARC_VAARGS_STYLE   4
00048 
00049 //---------------------------------------------------------------------------
00050 // Platform Identifier 
00051 //---------------------------------------------------------------------------
00052 
00053 #if defined(_WIN32) // Microsoft Visual Studio
00054         #ifndef RC_INVOKED
00055                 #if _MSC_VER < 1300 // Before MSVC7 (2003)
00056                         #error Xiron Platform Abstraction Layer - Win32 - Microsoft Visual Studio versions below 2003 (7.0) are not supported!
00057                 #endif
00058 
00059                 #if _MSC_VER > 1600 // After MSVC8 (2010)
00060                         #error Xiron Platform Abstraction Layer - Win32 - Microsoft Visual Studio versions above 2010 (10.0) are not supported!
00061                 #endif
00062         #endif
00063 
00064         #include "Win32/XnPlatformWin32.h"
00065 #elif (linux && (i386 || __x86_64__))
00066         #include "Linux-x86/XnPlatformLinux-x86.h"
00067 #elif (linux && __arm__)
00068         #include "Linux-Arm/XnPlatformLinux-Arm.h"
00069 #else
00070         #error OpenNI Platform Abstraction Layer - Unsupported Platform!
00071 #endif
00072 
00073 //---------------------------------------------------------------------------
00074 // Basic Common Macros
00075 //---------------------------------------------------------------------------
00076 #ifndef TRUE
00077         #define TRUE 1
00078 #endif
00079 
00080 #ifndef FALSE
00081         #define FALSE 0
00082 #endif
00083 
00084 #define XN_MIN(a,b)            (((a) < (b)) ? (a) : (b))
00085 
00086 #define XN_MAX(a,b)            (((a) > (b)) ? (a) : (b))
00087 
00088 //---------------------------------------------------------------------------
00089 // API Export/Import Macros
00090 //---------------------------------------------------------------------------
00091 
00092 #ifdef __cplusplus
00093         #define XN_C_API_EXPORT extern "C" XN_API_EXPORT
00094         #define XN_C_API_IMPORT extern "C" XN_API_IMPORT
00095         #define XN_CPP_API_EXPORT XN_API_EXPORT
00096         #define XN_CPP_API_IMPORT XN_API_IMPORT
00097 #else
00098         #define XN_C_API_EXPORT XN_API_EXPORT
00099         #define XN_C_API_IMPORT XN_API_IMPORT
00100 #endif
00101 
00102 #ifdef XN_EXPORTS
00103         #define XN_C_API XN_C_API_EXPORT
00104         #define XN_CPP_API XN_CPP_API_EXPORT
00105 #else
00106         #define XN_C_API XN_C_API_IMPORT
00107         #define XN_CPP_API XN_CPP_API_IMPORT
00108 #endif
00109 
00110 #endif //__XN_PLATFORM_H__
00111 


nao_openni
Author(s): Bener SUAY
autogenerated on Mon Jan 6 2014 11:27:51