summaryrefslogtreecommitdiff
path: root/include/rtlibc.h
diff options
context:
space:
mode:
authorMeco Man <[email protected]>2021-04-21 00:56:36 +0800
committerMeco Man <[email protected]>2021-04-21 00:56:36 +0800
commit40c09fc1e088e1f7a9eb91c85bd30119d4a38822 (patch)
treea88febbb8f10e73e2f30e50dae777693e452bd46 /include/rtlibc.h
parent926cd865892cfbb9b474d36cfd046688d92ecc37 (diff)
重新分类为common文件夹下属all文件夹和excgcc文件夹
Diffstat (limited to 'include/rtlibc.h')
-rw-r--r--include/rtlibc.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/rtlibc.h b/include/rtlibc.h
index 6f6777a2f3..50bddc6ee8 100644
--- a/include/rtlibc.h
+++ b/include/rtlibc.h
@@ -23,6 +23,13 @@
#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;
typedef int mode_t;