aboutsummaryrefslogtreecommitdiff
path: root/src/platform.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/platform.h')
-rw-r--r--src/platform.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/platform.h b/src/platform.h
index b92f7e0..ce9ece2 100644
--- a/src/platform.h
+++ b/src/platform.h
@@ -1,26 +1,32 @@
1#pragma once 1#pragma once
2 2
3#if (defined _WIN32_WCE) 3#if (defined __MINGW32__) || (defined __MINGW64__) // detect mingw before windows, because mingw defines _WIN32
4#define PLATFORM_MINGW
5//#pragma message("PLATFORM_MINGW")
6#elif (defined _WIN32_WCE)
4#define PLATFORM_POCKETPC 7#define PLATFORM_POCKETPC
8//#pragma message("PLATFORM_POCKETPC")
5#elif defined(_XBOX) 9#elif defined(_XBOX)
6#define PLATFORM_XBOX 10#define PLATFORM_XBOX
11//#pragma message("PLATFORM_XBOX")
7#elif (defined _WIN32) 12#elif (defined _WIN32)
8#define PLATFORM_WIN32 13#define PLATFORM_WIN32
14//#pragma message("PLATFORM_WIN32")
9#if !defined(NOMINMAX) 15#if !defined(NOMINMAX)
10#define NOMINMAX 16#define NOMINMAX
11#endif // NOMINMAX 17#endif // NOMINMAX
12#elif (defined __linux__) 18#elif (defined __linux__)
13#define PLATFORM_LINUX 19#define PLATFORM_LINUX
20//#pragma message("PLATFORM_LINUX")
14#elif (defined __APPLE__) && (defined __MACH__) 21#elif (defined __APPLE__) && (defined __MACH__)
15#define PLATFORM_OSX 22#define PLATFORM_OSX
23//#pragma message("PLATFORM_OSX")
16#elif (defined __NetBSD__) || (defined __FreeBSD__) || (defined BSD) 24#elif (defined __NetBSD__) || (defined __FreeBSD__) || (defined BSD)
17#define PLATFORM_BSD 25#define PLATFORM_BSD
18#elif (defined __QNX__) 26#elif (defined __QNX__)
19#define PLATFORM_QNX 27#define PLATFORM_QNX
20#elif (defined __CYGWIN__) 28#elif (defined __CYGWIN__)
21#define PLATFORM_CYGWIN 29#define PLATFORM_CYGWIN
22#elif (defined __MINGW32__) || (defined __MINGW64__)
23#define PLATFORM_MINGW
24#else 30#else
25#error "Unknown platform!" 31#error "Unknown platform!"
26#endif 32#endif