summaryrefslogtreecommitdiff
path: root/zen/build_info.h
blob: 09e1c5a73d0c00678c015dddfe75309a7d709c1b (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
34
35
36
37
38
// **************************************************************************
// * This file is part of the FreeFileSync project. It is distributed under *
// * GNU General Public License: http://www.gnu.org/licenses/gpl-3.0        *
// * Copyright (C) Zenju (zenju AT gmx DOT de) - All Rights Reserved        *
// **************************************************************************

#ifndef BUILD_INFO_H_5928539285603428657
#define BUILD_INFO_H_5928539285603428657

namespace zen
{
//determine build info: defines ZEN_BUILD_32BIT or ZEN_BUILD_64BIT

#ifdef ZEN_WIN
    #ifdef _WIN64
        #define ZEN_BUILD_64BIT
    #else
        #define ZEN_BUILD_32BIT
    #endif

#else
    #ifdef __LP64__
        #define ZEN_BUILD_64BIT
    #else
        #define ZEN_BUILD_32BIT
    #endif
#endif

#ifdef ZEN_BUILD_32BIT
    static_assert(sizeof(void*) == 4, "");
#endif

#ifdef ZEN_BUILD_64BIT
    static_assert(sizeof(void*) == 8, "");
#endif
}

#endif //BUILD_INFO_H_5928539285603428657
bgstack15