summaryrefslogtreecommitdiff
path: root/include/rtlibc.h
diff options
context:
space:
mode:
authorbernard <[email protected]>2017-11-30 23:56:52 +0800
committerbernard <[email protected]>2017-11-30 23:56:52 +0800
commitae7237dc53540897a9ea40e145122276bd0b9ddc (patch)
treed49a61e59202c15390260732482cf6464358ba6a /include/rtlibc.h
parent2a83353e5f0ff1888feb528689bd4c9e2edeb566 (diff)
[BSP] Fix the WIN32 compiling issue.
rename _errno to __rt_errno for conflict in WIN32.
Diffstat (limited to 'include/rtlibc.h')
-rw-r--r--include/rtlibc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/rtlibc.h b/include/rtlibc.h
index da126e67e6..db5236edb1 100644
--- a/include/rtlibc.h
+++ b/include/rtlibc.h
@@ -40,7 +40,7 @@ typedef signed long off_t;
typedef int mode_t;
#endif
-#if defined(__MINGW32__)
+#if defined(__MINGW32__) || defined(_WIN32)
typedef signed long off_t;
typedef int mode_t;
#endif