diff options
Diffstat (limited to 'components/libc/cplusplus/cpp11/gcc/__utils.h')
| -rw-r--r-- | components/libc/cplusplus/cpp11/gcc/__utils.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/components/libc/cplusplus/cpp11/gcc/__utils.h b/components/libc/cplusplus/cpp11/gcc/__utils.h index f9a3c93796..304d789ab5 100644 --- a/components/libc/cplusplus/cpp11/gcc/__utils.h +++ b/components/libc/cplusplus/cpp11/gcc/__utils.h @@ -17,11 +17,9 @@ #include <rtthread.h> -#define RT_USING_CPP_EXCEPTION - inline void throw_system_error(int err, const char *what_msg) { -#ifdef RT_USING_CPP_EXCEPTION +#ifdef RT_USING_CPP_EXCEPTIONS throw std::system_error(std::error_code(err, std::system_category()), what_msg); #else (void)err; |
