2008-08-15 07:22:26 +02:00
|
|
|
#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 <windows.h>
|
|
|
|
#include <malloc.h>
|
|
|
|
|
|
|
|
#if !defined alloca
|
|
|
|
#define alloca _alloca
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#else
|
|
|
|
|
|
|
|
#define KE_PLATFORM_POSIX
|
|
|
|
|
|
|
|
#if defined linux
|
|
|
|
#define KE_PLATFORM_LINUX
|
2008-12-23 07:33:37 +01:00
|
|
|
#elif defined __APPLE__
|
|
|
|
#define KE_PLATFORM_APPLE
|
2008-08-15 07:22:26 +02:00
|
|
|
#else
|
|
|
|
#error "TODO"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif //_INCLUDE_KNIGHT_KE_PLATFORM_H_
|