Maintain legacy RTOS behavior before mbed-5

Fork of mbed-rtos by mbed official

Revision:
121:3da5f554d8bf
Parent:
118:6635230e06ba
Child:
123:58563e6cba1e
--- a/rtx/TARGET_ARM7/RTX_CM_lib.h	Thu Aug 18 14:38:56 2016 +0100
+++ b/rtx/TARGET_ARM7/RTX_CM_lib.h	Thu Sep 01 15:13:42 2016 +0100
@@ -329,6 +329,7 @@
 
 #elif defined (__GNUC__)
 
+extern int atexit(void (*func)(void));
 extern void __libc_fini_array(void);
 extern void __libc_init_array (void);
 extern int main(int argc, char **argv);