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)
pull/711/head
ohagendorf 2014-11-16 17:43:42 +01:00
parent ab3fb54a15
commit f37a45d3b5
1 changed files with 2 additions and 0 deletions

View File

@ -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