mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #2544 from tung7970/master
Fix implicit declaration of function 'atexit'pull/2557/head
commit
030261f2c4
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue