diff options
| -rw-r--r-- | libcxxabi/src/cxa_handlers.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libcxxabi/src/cxa_handlers.cpp b/libcxxabi/src/cxa_handlers.cpp index 3f781313df8..ce2cfba35fd 100644 --- a/libcxxabi/src/cxa_handlers.cpp +++ b/libcxxabi/src/cxa_handlers.cpp @@ -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 |

