PixelBullet  0.0.1
A C++ game engine
Loading...
Searching...
No Matches
Platform.hpp
1#ifdef _WIN32
2#ifdef _WIN64
3#define PB_PLATFORM_WINDOWS
4#else
5#error "x86 Builds are not supported!"
6#endif
7#elif defined(__APPLE__) || defined(__MACH__)
8#include <TargetConditionals.h>
9#if TARGET_IPHONE_SIMULATOR == 1
10#error "IOS simulator is not supported!"
11#elif TARGET_OS_IPHONE == 1
12#define PB_PLATFORM_IOS
13#error "IOS is not supported!"
14#elif TARGET_OS_MAC == 1
15#define PB_PLATFORM_MACOS
16#error "MacOS is not supported!"
17#else
18#error "Unknown Apple platform!"
19#endif
20#elif defined(__ANDROID__)
21#define PB_PLATFORM_ANDROID
22#error "Android is not supported!"
23#elif defined(__linux__)
24#define PB_PLATFORM_LINUX
25#else
26#error "Unknown platform!"
27#endif