summaryrefslogtreecommitdiff
path: root/include/rtlibc.h
diff options
context:
space:
mode:
authorlizhirui <[email protected]>2021-05-18 09:54:11 +0800
committerlizhirui <[email protected]>2021-05-18 09:54:11 +0800
commit9a4e270f9770f778128ffdabe94f101416ce8c61 (patch)
tree9df43fbcc25c3f288ed6fdecd65909d4094d849f /include/rtlibc.h
parente7fc0c89d2367533dcd1b77e46acaeea7bc3f876 (diff)
parent4e9e3f79a565bb4fdc1d96deda18f9c771aeb0c9 (diff)
Merge branch 'RT-Thread:master' into master
Diffstat (limited to 'include/rtlibc.h')
-rw-r--r--include/rtlibc.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/rtlibc.h b/include/rtlibc.h
index fb8c782095..50bddc6ee8 100644
--- a/include/rtlibc.h
+++ b/include/rtlibc.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2006-2018, RT-Thread Development Team
+ * Copyright (c) 2006-2021, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
@@ -23,10 +23,12 @@
#include "libc/libc_limits.h"
#include "libc/libc_stdio.h"
+#ifndef RT_USING_LIBC
#if defined(__CC_ARM) || defined(__CLANG_ARM) || defined(__IAR_SYSTEMS_ICC__)
typedef signed long off_t;
typedef int mode_t;
#endif
+#endif
#if defined(__MINGW32__) || defined(_WIN32)
typedef signed long off_t;