sourcemod/knight/shared/KePlatform.h
David Anderson 1fe38c7473 SourceMod can now be somewhat compiled on OS X for patch sanity testing (bug 3516, r=ds).
This adds the ability for us to change the GCC version we use more flexibly.
2008-12-23 01:33:37 -05:00

30 lines
482 B
C

#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
#elif defined __APPLE__
#define KE_PLATFORM_APPLE
#else
#error "TODO"
#endif
#endif
#endif //_INCLUDE_KNIGHT_KE_PLATFORM_H_