summaryrefslogtreecommitdiff
path: root/include/rtlibc.h
diff options
context:
space:
mode:
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;