summaryrefslogtreecommitdiff
path: root/components/rtgui/common
diff options
context:
space:
mode:
author[email protected] <[email protected]>2012-09-20 08:13:23 +0000
committer[email protected] <[email protected]>2012-09-20 08:13:23 +0000
commitbcc6ffac9ece24f8db625c4e2a1e48fbc8258087 (patch)
treeeb9b67f2dbd0bf83bb4730d4740b6aedcdd6eab3 /components/rtgui/common
parent2d6bb86360570605264ca50c9801cf09a8ef9a32 (diff)
sync RTGUI with github(https://github.com/RT-Thread/RTGUI) 9573987ab967d6823151f967e4715a995579c8e5
As always, full log is in GitHub. git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2301 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'components/rtgui/common')
-rw-r--r--components/rtgui/common/filerw.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/components/rtgui/common/filerw.c b/components/rtgui/common/filerw.c
index d53b837d15..a639611726 100644
--- a/components/rtgui/common/filerw.c
+++ b/components/rtgui/common/filerw.c
@@ -214,11 +214,7 @@ static int parse_mode(const char *mode)
switch (*mode)
{
case 0: return f;
-#ifdef _WIN32
case 'b': f|=O_BINARY;break;
-#else
- case 'b': break;
-#endif
case 'r': f=O_RDONLY; break;
case 'w': f=O_WRONLY|O_CREAT|O_TRUNC; break;
case 'a': f=O_WRONLY|O_CREAT|O_APPEND; break;