Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef ONIPLATFORMMACOSX_H
00022 #define ONIPLATFORMMACOSX_H
00023
00024
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