summaryrefslogtreecommitdiff
path: root/include/rtlibc.h
diff options
context:
space:
mode:
authorWayne Lin <[email protected]>2021-05-12 18:39:35 +0800
committerWayne Lin <[email protected]>2021-05-12 18:39:35 +0800
commitf068908728afbcf2ab69b5949c286891150f3aca (patch)
treead931747ed4df603de13176697daf6cdfbbd2e98 /include/rtlibc.h
parent0e9054f7952d5e521268df3919067f62f0e2724d (diff)
parent1c823b3fc07111e3ce46d09574ff9bcda87a4d7f (diff)
Merge branch 'master' of https://github.com/RT-Thread/rt-thread into nuvoton
Diffstat (limited to 'include/rtlibc.h')
-rw-r--r--include/rtlibc.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/rtlibc.h b/include/rtlibc.h
index 5a260d250d..50bddc6ee8 100644
--- a/include/rtlibc.h
+++ b/include/rtlibc.h
@@ -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;