blob: 325db6effd8b851b405376833faf4ba168103839 (
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
|
#ifndef SIBS_ENV_HPP
#define SIBS_ENV_HPP
#define OS_FAMILY_WINDOWS 0
#define OS_FAMILY_POSIX 1
#if defined(_WIN32) || defined(_WIN64)
#if defined(_WIN64)
#define CISB_ENV_64BIT
#else
#define CISB_ENV_32BIT
#endif
#define OS_FAMILY OS_FAMILY_WINDOWS
#endif
#if defined(__linux__) || defined(__unix__) || defined(__APPLE__) || defined(_POSIX_VERSION)
#define OS_FAMILY OS_FAMILY_POSIX
#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
#if !defined(OS_FAMILY)
#error "System not support. Only Windows and Posix systems support"
#endif
#endif // SIBS_ENV_HPP
|