File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -87,8 +87,10 @@ bool g_rcutils_logging_initialized = false;
8787static char g_rcutils_logging_output_format_string [RCUTILS_LOGGING_MAX_OUTPUT_FORMAT_LEN ];
8888static const char * g_rcutils_logging_default_output_format =
8989 "[{severity}] [{time}] [{name}]: {message}" ;
90+ #ifdef _WIN32
9091static DWORD g_original_console_mode = 0 ;
9192static bool g_consol_mode_modified = false;
93+ #endif
9294
9395static rcutils_allocator_t g_rcutils_logging_allocator ;
9496
@@ -793,9 +795,11 @@ rcutils_ret_t rcutils_logging_shutdown(void)
793795 g_num_log_msg_handlers = 0 ;
794796 g_rcutils_logging_initialized = false;
795797
798+ #ifdef _WIN32
796799 if (g_consol_mode_modified ){
797800 SetConsoleMode (GetStdHandle (STD_ERROR_HANDLE ), g_original_console_mode );
798801 }
802+ #endif
799803 return ret ;
800804}
801805
You can’t perform that action at this time.
0 commit comments