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 ba795c6 commit ae299c3Copy full SHA for ae299c3
components/libc/posix/io/stdio/stdio.c
@@ -104,9 +104,12 @@ int rt_posix_stdio_set_console(const char* device_name, int mode)
104
_GLOBAL_REENT->_stderr = std_console;
105
}
106
107
-#if (NEWLIB_VERSION_NUM < 30400U) || (NEWLIB_VERSION_NUM >= 40000U && NEWLIB_VERSION_NUM < 40300U)
108
- _GLOBAL_REENT->__sdidinit = 1; /* __sdidinit is obselete */
+#if defined(_REENT_SMALL) || !defined(__sdidinit)
+ // newlib 新版本没有 __sdidinit
109
+#else
110
+ _GLOBAL_REENT->__sdidinit = 1;
111
#endif
112
+
113
114
115
if (std_console)
0 commit comments