From 06165b8290bb72e48b36ce6d8c57b901067f17f0 Mon Sep 17 00:00:00 2001 From: "dzzxzz@gmail.com" Date: Tue, 9 Oct 2012 02:35:49 +0000 Subject: [PATCH] fixed a compiling error of mini2440 project defined O_BINARY in newlib/sys/fcntl.h #define O_BINARY 0x0008000 git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2328 bbd45198-f89e-11dd-88c7-29a3b14d5316 --- components/libc/newlib/sys/fcntl.h | 31 +++++++++++++++--------------- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/components/libc/newlib/sys/fcntl.h b/components/libc/newlib/sys/fcntl.h index a65fb5257e..499c67260e 100644 --- a/components/libc/newlib/sys/fcntl.h +++ b/components/libc/newlib/sys/fcntl.h @@ -1,15 +1,16 @@ -#ifndef __RTT_FCNTL_H__ -#define __RTT_FCNTL_H__ - -/* Operation flags */ -#define O_RDONLY 0x0000000 -#define O_WRONLY 0x0000001 -#define O_RDWR 0x0000002 -#define O_ACCMODE 0x0000003 -#define O_CREAT 0x0000100 -#define O_EXCL 0x0000200 -#define O_TRUNC 0x0001000 -#define O_APPEND 0x0002000 -#define O_DIRECTORY 0x0200000 - -#endif +#ifndef __RTT_FCNTL_H__ +#define __RTT_FCNTL_H__ + +/* Operation flags */ +#define O_RDONLY 0x0000000 +#define O_WRONLY 0x0000001 +#define O_RDWR 0x0000002 +#define O_ACCMODE 0x0000003 +#define O_CREAT 0x0000100 +#define O_EXCL 0x0000200 +#define O_TRUNC 0x0001000 +#define O_APPEND 0x0002000 +#define O_DIRECTORY 0x0200000 +#define O_BINARY 0x0008000 + +#endif