Fix implicit declaration of function 'atexit'

Silence the following compiler warning:
[Warning] RTX_CM_lib.h@807,5: implicit declaration of function 'atexit' [-Wimplicit-function-declaration]

Signed-off-by: Tony Wu <tonywu@realtek.com>
pull/2544/head
Tony Wu 2016-08-25 15:42:46 +08:00
parent f3d652bbe0
commit 6157563ae3
3 changed files with 3 additions and 0 deletions

View File

@ -329,6 +329,7 @@ __asm void __rt_entry (void) {
#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);

View File

@ -485,6 +485,7 @@ __asm void __rt_entry (void) {
#endif
#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);

View File

@ -789,6 +789,7 @@ static osMutexId malloc_mutex_id;
osMutexDef(env_mutex);
static osMutexId env_mutex_id;
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);