[UCRT] Fix non-standard extern "C" usage

This commit is contained in:
Timo Kreuzer 2024-10-13 10:05:04 +02:00
parent 9ed5151de9
commit ffd69754f9
27 changed files with 104 additions and 102 deletions

View file

@ -18,7 +18,7 @@
#define _INIT_ABORT_BEHAVIOR _CALL_REPORTFAULT
#endif
extern "C" unsigned int __abort_behavior = _INIT_ABORT_BEHAVIOR;
extern "C" { unsigned int __abort_behavior = _INIT_ABORT_BEHAVIOR; }
/***
*void abort() - abort the current program by raising SIGABRT

View file

@ -11,8 +11,8 @@
static long c_termination_complete = FALSE;
extern "C" extern _onexit_table_t __acrt_atexit_table;
extern "C" extern _onexit_table_t __acrt_at_quick_exit_table;
extern "C" _onexit_table_t __acrt_atexit_table;
extern "C" _onexit_table_t __acrt_at_quick_exit_table;
// thread_local atexit dtor handling. The APPCRT exports a function to set the
// callback function. The exe main function will call this to set the callback

View file

@ -22,8 +22,8 @@
// The global atexit and at_quick_exit registries
extern "C" _onexit_table_t __acrt_atexit_table{};
extern "C" _onexit_table_t __acrt_at_quick_exit_table{};
extern "C" { _onexit_table_t __acrt_atexit_table{}; }
extern "C" { _onexit_table_t __acrt_at_quick_exit_table{}; }