1 #ifndef BOOST_CORE_QUICK_EXIT_HPP_INCLUDED
2 #define BOOST_CORE_QUICK_EXIT_HPP_INCLUDED
4 // MS compatible compilers support #pragma once
6 #if defined(_MSC_VER) && (_MSC_VER >= 1020)
10 // boost/core/quick_exit.hpp
12 // Copyright 2018 Peter Dimov
14 // Distributed under the Boost Software License, Version 1.0.
15 // See accompanying file LICENSE_1_0.txt or copy at
16 // http://www.boost.org/LICENSE_1_0.txt)
18 #include <boost/config.hpp>
21 #if defined(__MINGW32__) && !defined(__MINGW64_VERSION_MAJOR)
23 extern "C" _CRTIMP __cdecl __MINGW_NOTHROW void _exit (int) __MINGW_ATTRIB_NORETURN;
27 #if defined(__CYGWIN__) && __cplusplus < 201103L
29 extern "C" _Noreturn void quick_exit(int);
36 BOOST_NORETURN void quick_exit( int code ) BOOST_NOEXCEPT
38 #if defined(_MSC_VER) && _MSC_VER < 1900
42 #elif defined(__MINGW32__)
46 #elif defined(__APPLE__)
59 #endif // #ifndef BOOST_CORE_QUICK_EXIT_HPP_INCLUDED