| author | David Anderson <dvander@alliedmods.net> |
| Wed Feb 25 20:07:12 2009 -0500 (2009-02-25) | |
| changeset 2607 | f3b8bbe17f85 |
| 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_