knight/shared/KePlatform.h
author Nicholas Hastings <skamonkey@gmail.com>
Wed May 25 13:31:14 2011 -0400 (2011-05-25)
changeset 3285 065beec73902
parent 2471 194be299b700
permissions -rw-r--r--
Backed out changeset: 65eb3df32b1c
     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_