summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/luatexdir/luapplib/src/util/utilplat.h
blob: 8838f702b923ba84f3aceb0dafb1a960de0d67e5 (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

#ifndef UTIL_PLAT_H
#define UTIL_PLAT_H

#if defined(_WIN32) || defined(WIN32)
#  ifdef _MSC_VER
#    if defined(_M_64) || defined(_WIN64)
#      define MSVC64
#    else
#      define MSVC32
#    endif
#  else
#    if defined(__MINGW64__)
#      define MINGW64
#    else
#      if defined(__MINGW32__)
#        define MINGW32
#      endif
#    endif
#  endif
#endif

#ifdef __GNUC__
//#  define FALLTHRU [[fallthrough]] // c++17
//#  define FALLTHRU [[gnu:fallthrough]] // c++14
#  define FALLTHRU __attribute__((fallthrough)); // C and C++03
#else
#  define FALLTHRU
#endif

#endif