未验证 提交 cef57d00 编写于 作者: 哈哈哈可是开电脑's avatar 哈哈哈可是开电脑 提交者: GitHub

[armlibc] 修复AC6更新至6.19后_sys_tmpnam()函数编译报错 (#6647)

* [armlibc] 修复AC6更新至6.19后_sys_tmpnam()函数编译报错
Co-authored-by: mysterywolf's avatarMan, Jianting (Meco) <920369182@qq.com>
上级 3e2beebe
......@@ -282,11 +282,18 @@ int _sys_seek(FILEHANDLE fh, long pos)
/**
* used by tmpnam() or tmpfile()
*/
#if __ARMCC_VERSION >= 6190000
void _sys_tmpnam(char *name, int fileno, unsigned maxlength)
{
rt_snprintf(name, maxlength, "tem%03d", fileno);
}
#else
int _sys_tmpnam(char *name, int fileno, unsigned maxlength)
{
rt_snprintf(name, maxlength, "tem%03d", fileno);
return 1;
}
#endif /* __ARMCC_VERSION >= 6190000 */
char *_sys_command_string(char *cmd, int len)
{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册