mirror of
https://github.com/boostorg/core.git
synced 2025-07-30 12:57:26 +02:00
MacOS doesn't have quick_exit; Cygwin doesn't declare it in C++03 mode
This commit is contained in:
@ -18,6 +18,12 @@
|
|||||||
#include <boost/config.hpp>
|
#include <boost/config.hpp>
|
||||||
#include <cstdlib>
|
#include <cstdlib>
|
||||||
|
|
||||||
|
#if defined(__CYGWIN__) && __cplusplus < 201103L
|
||||||
|
|
||||||
|
extern "C" _Noreturn void quick_exit(int);
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
namespace boost
|
namespace boost
|
||||||
{
|
{
|
||||||
|
|
||||||
@ -27,6 +33,10 @@ BOOST_NORETURN void quick_exit( int code ) BOOST_NOEXCEPT
|
|||||||
|
|
||||||
::_exit( code );
|
::_exit( code );
|
||||||
|
|
||||||
|
#elif defined(__APPLE__)
|
||||||
|
|
||||||
|
::_Exit( code );
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
||||||
::quick_exit( code );
|
::quick_exit( code );
|
||||||
|
Reference in New Issue
Block a user