[libc] 优化system 支持gcc

This commit is contained in:
Meco Man
2021-09-27 22:20:21 -04:00
parent ebdf19bf0f
commit c80688126a
5 changed files with 15 additions and 43 deletions

View File

@@ -6,7 +6,6 @@
* Change Logs:
* Date Author Notes
* 2021-02-13 Meco Man implement exit() and abort()
* 2021-02-20 Meco Man add system()
*/
#include <rtthread.h>
@@ -17,9 +16,3 @@ void __exit (int status)
__rt_libc_exit(status);
while(1);
}
int system(const char * string)
{
extern int __rt_libc_system(const char *string);
return __rt_libc_system(string);
}