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:
parent
8e8b84dcdd
commit
b886a19bf9
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user