OniPlatformMacOSX.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 ONIPLATFORMMACOSX_H
22 #define ONIPLATFORMMACOSX_H
23 
24 // Start with Linux-x86, and override what's different
25 #include "../Linux-x86/OniPlatformLinux-x86.h"
26 
27 #include <sys/time.h>
28 
29 #undef ONI_PLATFORM
30 #undef ONI_PLATFORM_STRING
31 #define ONI_PLATFORM ONI_PLATFORM_MACOSX
32 #define ONI_PLATFORM_STRING "MacOSX"
33 
34 #include "TargetConditionals.h"
35 #if (TARGET_IPHONE_SIMULATOR == 1) || (TARGET_OS_IPHONE == 1)
36  #define ONI_PLATFORM_IOS
37 
38  #undef ONI_PLATFORM_STRING
39  #define ONI_PLATFORM_STRING "iOS"
40 #elif TARGET_OS_MAC
41  #ifdef XN_XCODE_BUILD
42  #define ONI_PLATFORM_MACOSX_XCODE
43 
44  #undef ONI_PLATFORM_STRING
45  #define ONI_PLATFORM_STRING "MacOSX-Xcode"
46  #endif
47 #endif
48 
49 #define ONI_PLATFORM_HAS_NO_TIMED_OPS
50 #define ONI_PLATFORM_HAS_NO_CLOCK_GETTIME
51 #define ONI_PLATFORM_HAS_NO_SCHED_PARAM
52 #define ONI_PLATFORM_HAS_BUILTIN_SEMUN
53 
54 #undef ONI_THREAD_STATIC
55 #define ONI_THREAD_STATIC
56 
57 #endif // ONIPLATFORMMACOSX_H


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