Merge pull request #2212 from unxed/ctrl_yo
[far2l.git] / far2l / src / farversion.h
blob99d7ff4cbf8e205d68fb33adbd6b6097486f7a6c
1 #pragma once
3 extern const uint32_t FAR_VERSION;
4 extern const char *FAR_BUILD;
6 extern const char *Copyright;
8 #if defined(__x86_64__)
9 #define FAR_PLATFORM "x64"
10 #elif defined(__ppc64__)
11 #define FAR_PLATFORM "ppc64"
12 #elif defined(__arm64__) || defined(__aarch64__)
13 #define FAR_PLATFORM "arm64"
14 #elif defined(__arm__)
15 #define FAR_PLATFORM "arm"
16 #elif defined(__mips__)
17 #ifdef __MIPSEL__
18 #define FAR_PLATFORM "mipsel"
19 #else
20 #define FAR_PLATFORM "mips"
21 #endif
22 #elif defined(__e2k__)
23 #define FAR_PLATFORM "e2k"
24 #elif defined(__riscv)
25 #if __riscv_xlen == 64
26 #define FAR_PLATFORM "rv64"
27 #else
28 #define FAR_PLATFORM "rv32"
29 #endif
30 #elif defined(__i386__)
31 #define FAR_PLATFORM "x86"
32 #else
33 #define FAR_PLATFORM "unknown"
34 #endif