OniPlatformMacOSX.h
Go to the documentation of this file.
00001 /*****************************************************************************
00002 *                                                                            *
00003 *  OpenNI 2.x Alpha                                                          *
00004 *  Copyright (C) 2012 PrimeSense Ltd.                                        *
00005 *                                                                            *
00006 *  This file is part of OpenNI.                                              *
00007 *                                                                            *
00008 *  Licensed under the Apache License, Version 2.0 (the "License");           *
00009 *  you may not use this file except in compliance with the License.          *
00010 *  You may obtain a copy of the License at                                   *
00011 *                                                                            *
00012 *      http://www.apache.org/licenses/LICENSE-2.0                            *
00013 *                                                                            *
00014 *  Unless required by applicable law or agreed to in writing, software       *
00015 *  distributed under the License is distributed on an "AS IS" BASIS,         *
00016 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  *
00017 *  See the License for the specific language governing permissions and       *
00018 *  limitations under the License.                                            *
00019 *                                                                            *
00020 *****************************************************************************/
00021 #ifndef ONIPLATFORMMACOSX_H
00022 #define ONIPLATFORMMACOSX_H
00023 
00024 // Start with Linux-x86, and override what's different
00025 #include "../Linux-x86/OniPlatformLinux-x86.h"
00026 
00027 #include <sys/time.h>
00028 
00029 #undef ONI_PLATFORM
00030 #undef ONI_PLATFORM_STRING
00031 #define ONI_PLATFORM ONI_PLATFORM_MACOSX
00032 #define ONI_PLATFORM_STRING "MacOSX"
00033 
00034 #include "TargetConditionals.h"
00035 #if (TARGET_IPHONE_SIMULATOR == 1) || (TARGET_OS_IPHONE == 1)
00036     #define ONI_PLATFORM_IOS
00037 
00038     #undef ONI_PLATFORM_STRING
00039     #define ONI_PLATFORM_STRING "iOS"
00040 #elif TARGET_OS_MAC
00041     #ifdef XN_XCODE_BUILD
00042         #define ONI_PLATFORM_MACOSX_XCODE
00043 
00044         #undef ONI_PLATFORM_STRING
00045         #define ONI_PLATFORM_STRING "MacOSX-Xcode"
00046     #endif
00047 #endif
00048 
00049 #define ONI_PLATFORM_HAS_NO_TIMED_OPS
00050 #define ONI_PLATFORM_HAS_NO_CLOCK_GETTIME
00051 #define ONI_PLATFORM_HAS_NO_SCHED_PARAM
00052 #define ONI_PLATFORM_HAS_BUILTIN_SEMUN
00053 
00054 #undef ONI_THREAD_STATIC
00055 #define ONI_THREAD_STATIC 
00056  
00057 #endif // ONIPLATFORMMACOSX_H


astra_camera
Author(s): Tim Liu
autogenerated on Wed Jul 10 2019 03:18:54