aboutsummaryrefslogtreecommitdiff
path: root/src/platform.h
blob: b92f7e0237457829821125b4a799942606f3a4f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#pragma once

#if (defined _WIN32_WCE)
#define PLATFORM_POCKETPC
#elif defined(_XBOX)
#define PLATFORM_XBOX
#elif (defined _WIN32)
#define PLATFORM_WIN32
#if !defined(NOMINMAX)
#define NOMINMAX
#endif // NOMINMAX
#elif (defined __linux__)
#define PLATFORM_LINUX
#elif (defined __APPLE__) && (defined __MACH__)
#define PLATFORM_OSX
#elif (defined __NetBSD__) || (defined __FreeBSD__) || (defined BSD)
#define PLATFORM_BSD
#elif (defined __QNX__)
#define PLATFORM_QNX
#elif (defined __CYGWIN__)
#define PLATFORM_CYGWIN
#elif (defined __MINGW32__) || (defined __MINGW64__)
#define PLATFORM_MINGW
#else
#error "Unknown platform!"
#endif