/usr/include/openni2/OniPlatform.h is in libopenni2-dev 2.2.0.33+dfsg-6.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 | /*****************************************************************************
* *
* OpenNI 2.x Alpha *
* Copyright (C) 2012 PrimeSense Ltd. *
* *
* This file is part of OpenNI. *
* *
* Licensed under the Apache License, Version 2.0 (the "License"); *
* you may not use this file except in compliance with the License. *
* You may obtain a copy of the License at *
* *
* http://www.apache.org/licenses/LICENSE-2.0 *
* *
* Unless required by applicable law or agreed to in writing, software *
* distributed under the License is distributed on an "AS IS" BASIS, *
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. *
* See the License for the specific language governing permissions and *
* limitations under the License. *
* *
*****************************************************************************/
#ifndef _ONI_PLATFORM_H_
#define _ONI_PLATFORM_H_
// Supported platforms
#define ONI_PLATFORM_WIN32 1
#define ONI_PLATFORM_LINUX_X86 2
#define ONI_PLATFORM_LINUX_ARM 3
#define ONI_PLATFORM_MACOSX 4
#define ONI_PLATFORM_ANDROID_ARM 5
#define ONI_PLATFORM_LINUX_GENERIC 6
#if (defined _WIN32)
# ifndef RC_INVOKED
# if _MSC_VER < 1300
# error OpenNI Platform Abstraction Layer - Win32 - Microsoft Visual Studio version below 2003 (7.0) are not supported!
# endif
# endif
# include "Win32/OniPlatformWin32.h"
#elif defined (ANDROID) && defined (__arm__)
# include "Android-Arm/OniPlatformAndroid-Arm.h"
#elif (__linux__ && (i386 || __x86_64__))
# include "Linux-x86/OniPlatformLinux-x86.h"
#elif (__linux__ && __arm__)
# include "Linux-Arm/OniPlatformLinux-Arm.h"
#elif (__linux__)
# include "Linux-generic/OniPlatformLinux-generic.h"
#elif _ARC
# include "ARC/OniPlaformARC.h"
#elif (__APPLE__)
# include "MacOSX/OniPlatformMacOSX.h"
#else
# error Xiron Platform Abstraction Layer - Unsupported Platform!
#endif
#ifdef __cplusplus
# define ONI_C extern "C"
# define ONI_C_API_EXPORT ONI_C ONI_API_EXPORT
# define ONI_C_API_IMPORT ONI_C ONI_API_IMPORT
# define ONI_CPP_API_EXPORT ONI_API_EXPORT
# define ONI_CPP_API_IMPORT ONI_API_IMPORT
#else // __cplusplus
# define ONI_C_API_EXPORT ONI_API_EXPORT
# define ONI_C_API_IMPORT ONI_API_IMPORT
#endif // __cplusplus
#ifdef OPENNI2_EXPORT
# define ONI_C_API ONI_C_API_EXPORT
# define ONI_CPP_API ONI_CPP_API_EXPORT
#else // OPENNI2_EXPORT
# define ONI_C_API ONI_C_API_IMPORT
# define ONI_CPP_API ONI_CPP_API_IMPORT
#endif // OPENNI2_EXPORT
#endif // _ONI_PLATFORM_H_
|