libcopp 2.3.1
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
config.hpp
Go to the documentation of this file.
1
2// Copyright Oliver Kowalke 2009.
3// Distributed under the Boost Software License, Version 1.0.
4// (See accompanying file LICENSE_1_0.txt or copy at
5// http://www.boost.org/LICENSE_1_0.txt)
6
7#ifndef _LIBCOPP_BOOST_CONTEXT_DETAIL_CONFIG_H
8#define _LIBCOPP_BOOST_CONTEXT_DETAIL_CONFIG_H
9
10// clang-format off
11#include <libcopp/utils/config/stl_include_prefix.h> // NOLINT(build/include_order)
12// clang-format on
13// required for SD-6 compile-time integer sequences
14#include <utility>
15// clang-format off
16#include <libcopp/utils/config/stl_include_suffix.h> // NOLINT(build/include_order)
17// clang-format on
18
19#ifdef _LIBCOPP_BOOST_CONTEXT_DECL
20# undef _LIBCOPP_BOOST_CONTEXT_DECL
21#endif
22
23#if !defined(LIBCOPP_BOOST_CONTEXT_DECL)
24# define LIBCOPP_BOOST_CONTEXT_DECL
25#endif
26#undef LIBCOPP_BOOST_CONTEXT_CALLDECL
27#if (defined(i386) || defined(__i386__) || defined(__i386) || defined(__i486__) || defined(__i586__) || \
28 defined(__i686__) || defined(__X86__) || defined(_X86_) || defined(__THW_INTEL__) || defined(__I86__) || \
29 defined(__INTEL__) || defined(__IA32__) || defined(_M_IX86) || defined(_I86_)) && \
30 defined(_WIN32)
31# define LIBCOPP_BOOST_CONTEXT_CALLDECL __cdecl
32#else
33# define LIBCOPP_BOOST_CONTEXT_CALLDECL
34#endif
35
36// BOOST_CONTEXT_SEGMENTS defined at utils/features.h
37
38#endif // _LIBCOPP_BOOST_CONTEXT_DETAIL_CONFIG_H