knight/shared/KePlatform.h
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--
Backed out changeset fa286305bd3f
     1 #ifndef _INCLUDE_KNIGHT_KE_PLATFORM_H_
     2 #define _INCLUDE_KNIGHT_KE_PLATFORM_H_
     3 
     4 #if defined WIN32
     5 
     6 #define KE_PLATFORM_WINDOWS
     7 #define WINDOWS_LEAN_AND_MEAN
     8 #include <windows.h>
     9 #include <malloc.h>
    10 
    11 #if !defined alloca
    12 #define alloca _alloca
    13 #endif
    14 
    15 #else
    16 
    17 #define KE_PLATFORM_POSIX
    18 
    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
    26 
    27 #endif
    28 
    29 #endif //_INCLUDE_KNIGHT_KE_PLATFORM_H_