We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ae299c3 commit f41e38dCopy full SHA for f41e38d
components/libc/posix/io/stdio/stdio.c
@@ -105,8 +105,10 @@ int rt_posix_stdio_set_console(const char* device_name, int mode)
105
}
106
107
#if defined(_REENT_SMALL) || !defined(__sdidinit)
108
- // newlib 新版本没有 __sdidinit
+ // Newlib >= 3.4.0 or small reent version: no __sdidinit field
109
+ // Do nothing
110
#else
111
+ // Older newlib versions (typically < 3.4.0) still define __sdidinit
112
_GLOBAL_REENT->__sdidinit = 1;
113
#endif
114
0 commit comments