mirror of
https://github.com/boostorg/core.git
synced 2025-07-29 20:37:22 +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 <cstdlib>
|
||||
|
||||
#if defined(__CYGWIN__) && __cplusplus < 201103L
|
||||
|
||||
extern "C" _Noreturn void quick_exit(int);
|
||||
|
||||
#endif
|
||||
|
||||
namespace boost
|
||||
{
|
||||
|
||||
@ -27,6 +33,10 @@ BOOST_NORETURN void quick_exit( int code ) BOOST_NOEXCEPT
|
||||
|
||||
::_exit( code );
|
||||
|
||||
#elif defined(__APPLE__)
|
||||
|
||||
::_Exit( code );
|
||||
|
||||
#else
|
||||
|
||||
::quick_exit( code );
|
||||
|
Reference in New Issue
Block a user