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


astra_camera
Author(s): Tim Liu
autogenerated on Wed Dec 16 2020 03:54:34