Cytopia
0.3
A city building simulation game
platform.hxx
Go to the documentation of this file.
1
#ifndef PLATFORM_H_
2
#define PLATFORM_H_
3
4
#if defined(__WIN32__) || defined(_WIN32) || defined(_WIN64)
5
#define CYTOPIA_PLATFORM_WIN
6
#define CYTOPIA_PLATFORM_WINPC
7
constexpr
const
char
*
CYTOPIA_PLATFORM_NAME
=
"win"
;
8
#elif defined(__APPLE_CC__) || defined(__APPLE__) || defined(__APPLE_CPP__) || defined(__MACOS_CLASSIC__)
9
#define CYTOPIA_PLATFORM_UNIX
10
#define CYTOPIA_PLATFORM_MACOSX
11
constexpr
const
char
*
CYTOPIA_PLATFORM_NAME
=
"macosx"
;
12
#elif defined(__FreeBSD__) || defined(__OpenBSD__)
13
#define CYTOPIA_PLATFORM_UNIX
14
#define CYTOPIA_PLATFORM_XBSD
15
constexpr
const
char
*
CYTOPIA_PLATFORM_NAME
=
"freebsd"
;
16
#elif defined(__HAIKU__) || defined(HAIKU)
17
#define CYTOPIA_PLATFORM_BEOS
18
#define CYTOPIA_PLATFORM_HAIKU
19
constexpr
const
char
*
CYTOPIA_PLATFORM_NAME
=
"haiku"
;
20
#elif defined(ANDROID)
21
#define CYTOPIA_PLATFORM_UNIX
22
#define CYTOPIA_PLATFORM_ANDROID
23
constexpr
const
char
*
CYTOPIA_PLATFORM_NAME
=
"android"
;
24
#else
25
#define CYTOPIA_PLATFORM_UNIX
26
#define CYTOPIA_PLATFORM_LINUX
27
constexpr
const
char
*
CYTOPIA_PLATFORM_NAME
=
"linux"
;
28
#endif
29
30
#endif // PLATFORM_H_
CYTOPIA_PLATFORM_NAME
constexpr const char * CYTOPIA_PLATFORM_NAME
Definition:
platform.hxx:27
src
engine
common
platform.hxx
Generated on Sun Nov 27 2022 09:50:52 for Cytopia by
1.8.17