From f37a45d3b5c7fb9cf87eaad1a3c5dc594ad4326f Mon Sep 17 00:00:00 2001 From: ohagendorf Date: Sun, 16 Nov 2014 17:43:42 +0100 Subject: [PATCH] Name of exit function in exit.c Change the name of the exit function to _exit as suggested in clib documenation for all gcc_arm toolchains (GCC_ARM and CoIDE) --- libraries/mbed/common/exit.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libraries/mbed/common/exit.c b/libraries/mbed/common/exit.c index 61887ce924..edf8a710d6 100644 --- a/libraries/mbed/common/exit.c +++ b/libraries/mbed/common/exit.c @@ -22,6 +22,8 @@ #ifdef TOOLCHAIN_GCC_CW // TODO: Ideally, we would like to define directly "_ExitProcess" void mbed_exit(int return_code) { +#elif defined TOOLCHAIN_GCC_ARM +void _exit(int return_code) { #else void exit(int return_code) { #endif