mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-12-19 22:08:21 +00:00
[BSP] Fix the WIN32 compiling issue.
rename _errno to __rt_errno for conflict in WIN32.
This commit is contained in:
@@ -4,13 +4,18 @@
|
||||
#ifndef LIBC_FCNTL_H__
|
||||
#define LIBC_FCNTL_H__
|
||||
|
||||
#ifdef RT_USING_NEWLIB
|
||||
#if defined(RT_USING_NEWLIB) || defined(_WIN32)
|
||||
#include <fcntl.h>
|
||||
|
||||
#ifndef O_NONBLOCK
|
||||
#define O_NONBLOCK 04000
|
||||
#endif
|
||||
|
||||
#if defined(_WIN32)
|
||||
#define O_DIRECTORY 0200000
|
||||
#define O_ACCMODE (_O_RDONLY | _O_WRONLY | _O_RDWR)
|
||||
#endif
|
||||
|
||||
#else
|
||||
#define O_RDONLY 00
|
||||
#define O_WRONLY 01
|
||||
|
||||
Reference in New Issue
Block a user