mCRL2
Loading...
Searching...
No Matches
platform.h
Go to the documentation of this file.
1// Author(s): Maurice Laveaux
2// Copyright: see the accompanying file COPYING or copy at
3// https://github.com/mCRL2org/mCRL2/blob/master/COPYING
4//
5// Distributed under the Boost Software License, Version 1.0.
6// (See accompanying file LICENSE_1_0.txt or copy at
7// http://www.boost.org/LICENSE_1_0.txt)
8//
9
10#ifndef MCRL2_UTILITIES_PLATFORM_H_
11#define MCRL2_UTILITIES_PLATFORM_H_
12
14#ifdef _WIN32
15 #define MCRL2_PLATFORM_WINDOWS 1
16#endif
17
18#ifdef __linux
19 #define MCRL2_PLATFORM_LINUX 1
20#endif
21
22#ifdef __FreeBSD__
23 #define MCRL2_PLATFORM_FREEBSD 1
24#endif
25
26#ifdef __APPLE__
27 #define MCRL2_PLATFORM_MAC 1
28#endif
29
31#if defined(__GNUC__) && !defined(__clang)
32 // __GNUC__ is defined for all GNU compliant compilers, e.g., gcc, clang and icc so this is not quite perfect.
33 #define MCRL2_COMPILER_GCC 1
34#endif
35
36#ifdef __clang__
37 #define MCRl2_COMPILER_CLANG 1
38#endif
39
40#endif // MCRL2_UTILITIES_PLATFORM_H_