#ifndef _INCLUDE_KNIGHT_KE_PLATFORM_H_ #define _INCLUDE_KNIGHT_KE_PLATFORM_H_ #if defined WIN32 #define KE_PLATFORM_WINDOWS #define WINDOWS_LEAN_AND_MEAN #include #include #if !defined alloca #define alloca _alloca #endif #else #define KE_PLATFORM_POSIX #if defined linux #define KE_PLATFORM_LINUX #else #error "TODO" #endif #endif #endif //_INCLUDE_KNIGHT_KE_PLATFORM_H_