summaryrefslogtreecommitdiff
path: root/bsp/simulator
diff options
context:
space:
mode:
authorprife <[email protected]>2013-02-26 16:23:28 +0800
committerprife <[email protected]>2013-02-26 16:23:28 +0800
commit9f355875d866f4b95798955efc6b3eff76ecc337 (patch)
tree04880184f4d526a2b10946c97baf3ba7c1856268 /bsp/simulator
parent9ccdf4172ee0fc3e7fe8ac0db122a81572e9c0f8 (diff)
mingw support for simulator: dfs/fatfs
Diffstat (limited to 'bsp/simulator')
-rwxr-xr-xbsp/simulator/rtconfig.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/bsp/simulator/rtconfig.h b/bsp/simulator/rtconfig.h
index 470d0af066..81e8c0d9d7 100755
--- a/bsp/simulator/rtconfig.h
+++ b/bsp/simulator/rtconfig.h
@@ -21,6 +21,10 @@
#elif defined(__GNUC__)
#define RT_USING_NOLIBC
+
+#if defined(__MINGW32__)
+#define _NO_OLDNAMES /* to ignore: mode_t in sys/type.h */
+#endif
#endif
/* SECTION: basic kernel options */
@@ -108,7 +112,7 @@
#define FINSH_USING_DESCRIPTION
/* SECTION: device file system */
-/* #define RT_USING_DFS */
+#define RT_USING_DFS
#define DFS_FILESYSTEM_TYPES_MAX 8
/* DFS: ELM FATFS options */