mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-03-27 01:10:20 +08:00
fixed errno issue when using newlib.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1729 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
@@ -25,12 +25,9 @@
|
||||
*/
|
||||
/*@{*/
|
||||
|
||||
#ifndef RT_USING_NEWLIB
|
||||
/* global errno in RT-Thread */
|
||||
static volatile int _errno;
|
||||
#else
|
||||
#include <errno.h>
|
||||
#endif
|
||||
|
||||
#if defined(RT_USING_DEVICE) && defined(RT_USING_CONSOLE)
|
||||
static rt_device_t _console_device = RT_NULL;
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user