ezEngine  Milestone 7
Platform_OSX.h
1 #pragma once
2 
3 #if EZ_DISABLED(EZ_PLATFORM_OSX)
4  #error "This header should only be included on OSX"
5 #endif
6 
7 #include <sys/malloc.h>
8 #include <pthread.h>
9 #include <cstdio>
10 #include <sys/time.h>
11 
12 // unset common macros
13 #undef min
14 #undef max
15 
17 #include <Foundation/Basics/Compiler/GCC/GCC.h>
18 
19 #undef EZ_PLATFORM_LITTLE_ENDIAN
20 #define EZ_PLATFORM_LITTLE_ENDIAN EZ_ON
21 
22 #if __x86_64__
23  #undef EZ_PLATFORM_64BIT
24  #define EZ_PLATFORM_64BIT EZ_ON
25 #else
26  #undef EZ_PLATFORM_32BIT
27  #define EZ_PLATFORM_32BIT EZ_ON
28 #endif
29