mirror of
https://github.com/intel/llvm.git
synced 2026-01-26 03:56:16 +08:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user