Debian Codegraph @

libs/pplib/pplib-src/src/util/utilplat.h

raw
1
2 #ifndef UTIL_PLAT_H
3 #define UTIL_PLAT_H
4
5 #if defined(_WIN32) || defined(WIN32)
6 # ifdef _MSC_VER
7 # if defined(_M_64) || defined(_WIN64)
8 # define MSVC64
9 # else
10 # define MSVC32
11 # endif
12 # else
13 # if defined(__MINGW64__)
14 # define MINGW64
15 # else
16 # if defined(__MINGW32__)
17 # define MINGW32
18 # endif
19 # endif
20 # endif
21 #endif
22
23 #ifdef __GNUC__
24 //# define FALLTHRU [[fallthrough]] // c++17
25 //# define FALLTHRU [[gnu:fallthrough]] // c++14
26 # define FALLTHRU __attribute__((fallthrough)); // C and C++03
27 #else
28 # define FALLTHRU
29 #endif
30
31 #endif