tweak definition to avoid GCC warning

Use an `extern "C" { }` block around the definition rather than doing
the inline definition.  This avoids a GCC warning about a declaration
being extern and having a definition.  NFC.

llvm-svn: 290937
This commit is contained in:
Saleem Abdulrasool 2017-01-04 05:45:24 +00:00
parent be16876e89
commit 51f0c20dc2

View File

@ -104,7 +104,9 @@ terminate() _NOEXCEPT
// In the future this will become:
// std::atomic<std::new_handler> __cxa_new_handler(0);
extern "C" _LIBCXXABI_DATA_VIS new_handler __cxa_new_handler = 0;
extern "C" {
_LIBCXXABI_DATA_VIS new_handler __cxa_new_handler = 0;
}
new_handler
set_new_handler(new_handler handler) _NOEXCEPT