File: version_string.h

package info (click to toggle)
dosbox-x 2026.01.02%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 53,220 kB
  • sloc: cpp: 341,269; ansic: 165,494; sh: 1,463; makefile: 967; perl: 385; python: 106; asm: 57
file content (71 lines) | stat: -rw-r--r-- 2,135 bytes parent folder | download
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
/*
 *  Copyright (C) 2011-2023  The DOSBox-X Team
 *
 *  This program is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; either version 2 of the License, or
 *  (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License along
 *  with this program; if not, write to the Free Software Foundation, Inc.,
 *  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 */

#if WIN32 && !defined(HX_DOS)
#ifdef _MSC_VER
#if defined(_M_X64) || defined(_M_AMD64) || defined(_M_IX86)
#if _MSC_VER <= 1916
#define OS_PLATFORM "VS XP"
#define OS_PLATFORM_LONG "Visual Studio XP"
#else
#define OS_PLATFORM "VS"
#define OS_PLATFORM_LONG "Visual Studio"
#endif
#else
#define OS_PLATFORM "VS ARM"
#define OS_PLATFORM_LONG "Visual Studio ARM"
#endif
#elif defined(__MINGW32__)
#ifdef _UCRT
#define OS_PLATFORM "UCRT"
#define OS_PLATFORM_LONG "UCRT"
#else
#define OS_PLATFORM "MinGW"
#define OS_PLATFORM_LONG "MinGW"
#endif
#else
#define OS_PLATFORM "Windows"
#define OS_PLATFORM_LONG "Windows"
#endif
#elif defined(HX_DOS)
#define OS_PLATFORM "DOS"
#define OS_PLATFORM_LONG "DOS"
#elif defined(LINUX)
#define OS_PLATFORM "Linux"
#define OS_PLATFORM_LONG "Linux"
#elif defined(MACOSX)
#ifdef __arm64__
#define OS_PLATFORM "ARM mac"
#define OS_PLATFORM_LONG "macOS ARM"
#else
#define OS_PLATFORM "x86 mac"
#define OS_PLATFORM_LONG "macOS Intel"
#endif

#else
#define OS_PLATFORM ""
#define OS_PLATFORM_LONG ""
#endif

#if defined(_M_X64) || defined (_M_AMD64) || defined (_M_ARM64) || defined (_M_IA64) || defined(__ia64__) || defined(__LP64__) || defined(_WIN64) || defined(__x86_64__) || defined(__aarch64__) || defined(__powerpc64__)
#define OS_BIT "64"
#define OS_BIT_INT 64
#else
#define OS_BIT "32"
#define OS_BIT_INT 32
#endif