mirror of
https://github.com/boostorg/core.git
synced 2025-07-29 12:27:42 +02:00
Declare and use _exit under MinGW32
This commit is contained in:
@ -18,6 +18,12 @@
|
||||
#include <boost/config.hpp>
|
||||
#include <cstdlib>
|
||||
|
||||
#if defined(__MINGW32__) && !defined(__MINGW64_VERSION_MAJOR)
|
||||
|
||||
_CRTIMP __cdecl __MINGW_NOTHROW void _exit (int) __MINGW_ATTRIB_NORETURN;
|
||||
|
||||
#endif
|
||||
|
||||
#if defined(__CYGWIN__) && __cplusplus < 201103L
|
||||
|
||||
extern "C" _Noreturn void quick_exit(int);
|
||||
@ -33,6 +39,10 @@ BOOST_NORETURN void quick_exit( int code ) BOOST_NOEXCEPT
|
||||
|
||||
::_exit( code );
|
||||
|
||||
#elif defined(__MINGW32__) && !defined(__MINGW64_VERSION_MAJOR)
|
||||
|
||||
::_exit( code );
|
||||
|
||||
#elif defined(__APPLE__)
|
||||
|
||||
::_Exit( code );
|
||||
|
Reference in New Issue
Block a user