aboutsummaryrefslogtreecommitdiff
path: root/include/env.hpp
blob: 5d0a1634f353fdc8643c74b91622270c04508a23 (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
#ifndef SIBS_ENV_HPP
#define SIBS_ENV_HPP

#if defined(_WIN32) || defined(_WIN64)
    #if defined(_WIN64)
        #define CISB_ENV_64BIT
    #else
        #define CISB_ENV_32BIT
    #endif
#endif

#if defined(__GNUC__)
    #if defined(__x86_64__) || defined(__pc64__)
        #define CISB_ENV_64BIT
    #else
        #define CISB_ENV_32BIT
    #endif
#endif

#if !defined(CISB_ENV_32BIT) && !defined(CISB_ENV_64BIT)
    #error "System is not detected as either 32-bit or 64-bit"
#endif

#endif // SIBS_ENV_HPP