Skip to content

Commit 15ee1ca

Browse files
committed
Fix for #908, exit req std namespace
1 parent c9e7f40 commit 15ee1ca

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

libraries/mbed/common/retarget.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -493,6 +493,7 @@ extern "C" void mbed_exit(int return_code) {
493493
#elif defined TOOLCHAIN_GCC_ARM
494494
extern "C" void _exit(int return_code) {
495495
#else
496+
namespace std {
496497
extern "C" void exit(int return_code) {
497498
#endif
498499

@@ -513,6 +514,10 @@ extern "C" void exit(int return_code) {
513514
while (1);
514515
}
515516

517+
#if !defined(TOOLCHAIN_GCC_ARM) && !defined(TOOLCHAIN_GCC_CW)
518+
} //namespace std
519+
#endif
520+
516521

517522
namespace mbed {
518523

0 commit comments

Comments
 (0)