From 944f27853b801c1363bbe1850f46e9ef0952f33c Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Thu, 6 Sep 2018 05:28:23 +0300 Subject: [PATCH] Declare _exit as extern 'C' --- include/boost/core/quick_exit.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/boost/core/quick_exit.hpp b/include/boost/core/quick_exit.hpp index f0f903e..4e9ec48 100644 --- a/include/boost/core/quick_exit.hpp +++ b/include/boost/core/quick_exit.hpp @@ -20,7 +20,7 @@ #if defined(__MINGW32__) && !defined(__MINGW64_VERSION_MAJOR) -_CRTIMP __cdecl __MINGW_NOTHROW void _exit (int) __MINGW_ATTRIB_NORETURN; +extern "C" _CRTIMP __cdecl __MINGW_NOTHROW void _exit (int) __MINGW_ATTRIB_NORETURN; #endif