diff options
| author | [email protected] <[email protected]> | 2011-05-16 00:29:28 +0000 |
|---|---|---|
| committer | [email protected] <[email protected]> | 2011-05-16 00:29:28 +0000 |
| commit | c99ca774a1fc441cf4f24a48a565ccd564d55cf0 (patch) | |
| tree | b1449d661531e472297745ac1fbacdd7085f9d2a /components/pthreads | |
| parent | 7a6949f248d3f1139825451a672bc41d9efc6d52 (diff) | |
Modify the link mode, compile each component to static library first and then link them
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1405 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'components/pthreads')
| -rw-r--r-- | components/pthreads/posix_types.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/components/pthreads/posix_types.h b/components/pthreads/posix_types.h index fd913aee2e..a2bb1aeac9 100644 --- a/components/pthreads/posix_types.h +++ b/components/pthreads/posix_types.h @@ -176,15 +176,15 @@ struct timeval { #include <dfs_posix.h>
#else
typedef rt_uint16_t mode_t;
-#define O_RDONLY 0000000
-#define O_WRONLY 0000001
-#define O_RDWR 0000002
-#define O_ACCMODE 0000003
-#define O_CREAT 0000100
-#define O_EXCL 0000200
-#define O_TRUNC 0001000
-#define O_APPEND 0002000
-#define O_DIRECTORY 0200000
+#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
#elif defined (__GNUC__) /* GNU GCC Compiler, with minilibc */
|
