-
Notifications
You must be signed in to change notification settings - Fork 47
/
version.h
40 lines (31 loc) · 830 Bytes
/
version.h
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#pragma once
#ifdef HAVE_CONFIG_H
#include <config.h>
#define RADIANT_VERSION PACKAGE_VERSION
#else
#define RADIANT_VERSION "3.0.0pre7"
#endif
#define RADIANT_APPNAME "DarkRadiant"
#define RADIANT_BLANK " "
#if defined(_M_X64) || defined(__amd64__) || defined(_WIN64)
// 64 bit architecture names (according to platform convention)
#if defined(__linux__)
#define RADIANT_PLATFORM "amd64"
#else
#define RADIANT_PLATFORM "x64"
#endif
#else
// 32 bit architecture names (according to platform convention)
#if defined(__linux)
#define RADIANT_PLATFORM "i386"
#else
#define RADIANT_PLATFORM "x86"
#endif
#endif
#include <string>
inline std::string RADIANT_APPNAME_FULL()
{
return std::string(RADIANT_APPNAME) + " "
+ std::string(RADIANT_VERSION) + " "
+ std::string(RADIANT_PLATFORM) + " ";
}