| author | Ruben Gonzalez <drifter01620@gmail.com> |
| Thu May 22 09:49:27 2014 -0400 (2014-05-22) | |
| changeset 4378 | 568f4497ef4a |
| parent 2471 | 194be299b700 |
| permissions | -rw-r--r-- |
1 #ifndef _INCLUDE_KNIGHT_KE_PLATFORM_H_
2 #define _INCLUDE_KNIGHT_KE_PLATFORM_H_
4 #if defined WIN32
6 #define KE_PLATFORM_WINDOWS
7 #define WINDOWS_LEAN_AND_MEAN
8 #include <windows.h>
9 #include <malloc.h>
11 #if !defined alloca
12 #define alloca _alloca
13 #endif
15 #else
17 #define KE_PLATFORM_POSIX
19 #if defined linux
20 #define KE_PLATFORM_LINUX
21 #elif defined __APPLE__
22 #define KE_PLATFORM_APPLE
23 #else
24 #error "TODO"
25 #endif
27 #endif
29 #endif //_INCLUDE_KNIGHT_KE_PLATFORM_H_