mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-24 10:07:48 +00: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:
parent
be16876e89
commit
51f0c20dc2
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user