Merge pull request #2544 from tung7970/master

Fix implicit declaration of function 'atexit'
pull/2557/head
Sam Grove 2016-08-26 09:30:19 -05:00 committed by GitHub
commit 030261f2c4
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

@ -790,6 +790,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);