ezEngine  Milestone 7
Platform_Linux.h
1 #pragma once
2 
3 #if EZ_DISABLED(EZ_PLATFORM_LINUX)
4  #error "This header should only be included on Linux"
5 #endif
6 
7 #include <malloc.h>
8 #include <pthread.h>
9 #include <cstdio>
10 #include <sys/time.h>
11 #include <stdarg.h>
12 #include <unistd.h>
13 
14 // unset common macros
15 #ifdef min
16  #undef min
17 #endif
18 #ifdef max
19  #undef max
20 #endif
21 
23 #include <Foundation/Basics/Compiler/GCC/GCC.h>
24 
25 #undef EZ_PLATFORM_LITTLE_ENDIAN
26 #define EZ_PLATFORM_LITTLE_ENDIAN EZ_ON
27 
28 #if __x86_64
29  #undef EZ_PLATFORM_64BIT
30  #define EZ_PLATFORM_64BIT EZ_ON
31 #else
32  #undef EZ_PLATFORM_32BIT
33  #define EZ_PLATFORM_32BIT EZ_ON
34 #endif
35