summaryrefslogtreecommitdiff
path: root/zen/build_info.h
blob: 5a1d1635b5fc0e2a753e0eba42321f98787a4476 (plain)
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
// *****************************************************************************
// * This file is part of the FreeFileSync project. It is distributed under    *
// * GNU General Public License: https://www.gnu.org/licenses/gpl-3.0          *
// * Copyright (C) Zenju (zenju AT freefilesync DOT org) - All Rights Reserved *
// *****************************************************************************

#ifndef BUILD_INFO_H_5928539285603428657
#define BUILD_INFO_H_5928539285603428657


#define ZEN_ARCH_32BIT 32
#define ZEN_ARCH_64BIT 64

    #ifdef __LP64__
        #define ZEN_BUILD_ARCH ZEN_ARCH_64BIT
    #else
        #define ZEN_BUILD_ARCH ZEN_ARCH_32BIT
    #endif

static_assert(ZEN_BUILD_ARCH == sizeof(void*) * 8);


namespace zen
{
    #if ZEN_BUILD_ARCH == ZEN_ARCH_32BIT
        const char cpuArchName[] = "i686";
    #else
        const char cpuArchName[] = "x86-64";
    #endif

}

#endif //BUILD_INFO_H_5928539285603428657
bgstack15