SPARK
0.1.0
A general purpose game engine written in C++.
Loading...
Searching...
No Matches
Platforms.h
1
#pragma once
2
3
// @formatter:off
4
5
#if defined(WIN32) || defined(_WIN32) || defined(__WIN32__) || defined(__NT__)
6
// Target OS is Windows
7
#define SPARK_OS_WINDOWS 1
8
#ifdef _WIN64
9
#if defined(__clang__)
10
// Compiler is Clang
11
#define SPARK_COMPILER_CLANG 1
12
#elif defined(_MSC_VER)
13
// Compiler is MSVC
14
#define SPARK_COMPILER_MSVC 1
15
#else
16
#error "Unknown/unsupported compiler"
17
#endif
18
#else
19
#error "32-bit Windows platform is not supported"
20
#endif
21
#elif __APPLE__
22
#error "Apple platform is not supported"
23
#elif defined(unix) | defined(__unix) | defined(__unix__)
24
#ifdef __linux__
25
// Target OS is Linux
26
#define SPARK_OS_LINUX 1
27
#if defined(__clang__)
28
// Compiler is Clang
29
#define SPARK_COMPILER_CLANG 1
30
#elif defined(__GNUC__) || defined(__GNUG__)
31
// Compiler is GCC
32
#define SPARK_COMPILER_GCC 1
33
#else
34
#error "Unknown/unsupported UNIX platform"
35
#endif
36
#endif
37
#else
38
#error "Unknown and unsupported platform"
39
#endif
40
41
// @formatter:on
sources
spark
base
include
spark
base
Platforms.h
Generated by
1.11.0