Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
wwsmg1
rt-thread
提交
c7aa6f06
R
rt-thread
项目概览
wwsmg1
/
rt-thread
与 Fork 源项目一致
Fork自
RT-Thread / rt-thread
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
rt-thread
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
c7aa6f06
编写于
10月 02, 2020
作者:
mysterywolf
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[fix bug] #3902
上级
aeff91b2
变更
8
显示空白变更内容
内联
并排
Showing
8 changed file
with
39 addition
and
15 deletion
+39
-15
components/libc/compilers/common/readme.md
components/libc/compilers/common/readme.md
+10
-1
components/net/lwip-1.4.1/src/arch/include/arch/cc.h
components/net/lwip-1.4.1/src/arch/include/arch/cc.h
+8
-3
components/net/lwip-2.0.2/src/arch/include/arch/cc.h
components/net/lwip-2.0.2/src/arch/include/arch/cc.h
+8
-3
components/net/lwip-2.1.2/src/arch/include/arch/cc.h
components/net/lwip-2.1.2/src/arch/include/arch/cc.h
+8
-3
include/libc/libc_errno.h
include/libc/libc_errno.h
+2
-2
include/libc/libc_fcntl.h
include/libc/libc_fcntl.h
+1
-1
include/libc/libc_fdset.h
include/libc/libc_fdset.h
+1
-1
include/libc/libc_stat.h
include/libc/libc_stat.h
+1
-1
未找到文件。
components/libc/compilers/common/readme.md
浏览文件 @
c7aa6f06
This folder is "common" for armlibc newlibc and dlib. It's not "common" for minilibc.
\ No newline at end of file
# Attention :
1.
This folder is "common" for armlibc newlibc and dlib. It's not "common" for minilibc.
2.
If you want to add new .c files, please do not forget to fix SConscript file too. eg:
```
python
if
GetDepend
(
'RT_USING_POSIX'
)
==
False
:
SrcRemove
(
src
,
[
'unistd.c'
])
```
\ No newline at end of file
components/net/lwip-1.4.1/src/arch/include/arch/cc.h
浏览文件 @
c7aa6f06
...
...
@@ -66,7 +66,7 @@ typedef uintptr_t mem_ptr_t;
#endif
/* __CC_ARM/__IAR_SYSTEMS_ICC__ */
#endif
#if defined(RT_USING_LIBC) || defined(RT_USING_MINILIBC) || defined(RT_LIBC_USING_TIME) ||
defined ( __GNUC__
)
#if defined(RT_USING_LIBC) || defined(RT_USING_MINILIBC) || defined(RT_LIBC_USING_TIME) ||
(defined( __GNUC__ ) && !defined(__ARMCC_VERSION)
)
#include <sys/time.h>
#define LWIP_TIMEVAL_PRIVATE 0
#else
...
...
@@ -78,10 +78,15 @@ typedef uintptr_t mem_ptr_t;
#define PACK_STRUCT_STRUCT __attribute__ ((__packed__))
#define PACK_STRUCT_BEGIN
#define PACK_STRUCT_END
#elif defined(__IAR_SYSTEMS_ICC__)
/* IAR Compiler */
#elif defined(__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050)
/*Arm Compiler 6*/
#define PACK_STRUCT_FIELD(x) x
#define PACK_STRUCT_STRUCT __attribute__((packed))
#define PACK_STRUCT_BEGIN
#define PACK_STRUCT_STRUCT
#define PACK_STRUCT_END
#elif defined(__IAR_SYSTEMS_ICC__)
/* IAR Compiler */
#define PACK_STRUCT_BEGIN #pragma pack(1)
#define PACK_STRUCT_STRUCT
#define PACK_STRUCT_END #pragma pack()
#define PACK_STRUCT_FIELD(x) x
#define PACK_STRUCT_USE_INCLUDES
#elif defined(__GNUC__)
/* GNU GCC Compiler */
...
...
components/net/lwip-2.0.2/src/arch/include/arch/cc.h
浏览文件 @
c7aa6f06
...
...
@@ -45,7 +45,7 @@
#define S32_F "ld"
#define X32_F "lx"
#if defined(RT_USING_LIBC) || defined(RT_USING_MINILIBC) || defined(RT_LIBC_USING_TIME) ||
defined ( __GNUC__
)
#if defined(RT_USING_LIBC) || defined(RT_USING_MINILIBC) || defined(RT_LIBC_USING_TIME) ||
(defined( __GNUC__ ) && !defined(__ARMCC_VERSION)
)
#include <sys/time.h>
#define LWIP_TIMEVAL_PRIVATE 0
#else
...
...
@@ -57,10 +57,15 @@
#define PACK_STRUCT_STRUCT __attribute__ ((__packed__))
#define PACK_STRUCT_BEGIN
#define PACK_STRUCT_END
#elif defined(__IAR_SYSTEMS_ICC__)
/* IAR Compiler */
#elif defined(__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050)
/*Arm Compiler 6*/
#define PACK_STRUCT_FIELD(x) x
#define PACK_STRUCT_STRUCT __attribute__((packed))
#define PACK_STRUCT_BEGIN
#define PACK_STRUCT_STRUCT
#define PACK_STRUCT_END
#elif defined(__IAR_SYSTEMS_ICC__)
/* IAR Compiler */
#define PACK_STRUCT_BEGIN #pragma pack(1)
#define PACK_STRUCT_STRUCT
#define PACK_STRUCT_END #pragma pack()
#define PACK_STRUCT_FIELD(x) x
#define PACK_STRUCT_USE_INCLUDES
#elif defined(__GNUC__)
/* GNU GCC Compiler */
...
...
components/net/lwip-2.1.2/src/arch/include/arch/cc.h
浏览文件 @
c7aa6f06
...
...
@@ -59,7 +59,7 @@
#endif
/* __CC_ARM/__IAR_SYSTEMS_ICC__ */
#endif
/* RT_USING_LIBC */
#if defined(RT_USING_LIBC) || defined(RT_USING_MINILIBC) || defined(RT_LIBC_USING_TIME) ||
defined ( __GNUC__
)
#if defined(RT_USING_LIBC) || defined(RT_USING_MINILIBC) || defined(RT_LIBC_USING_TIME) ||
(defined( __GNUC__ ) && !defined(__ARMCC_VERSION)
)
#include <sys/time.h>
#define LWIP_TIMEVAL_PRIVATE 0
#else
...
...
@@ -71,10 +71,15 @@
#define PACK_STRUCT_STRUCT __attribute__ ((__packed__))
#define PACK_STRUCT_BEGIN
#define PACK_STRUCT_END
#elif defined(__IAR_SYSTEMS_ICC__)
/* IAR Compiler */
#elif defined(__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050)
/*Arm Compiler 6*/
#define PACK_STRUCT_FIELD(x) x
#define PACK_STRUCT_STRUCT __attribute__((packed))
#define PACK_STRUCT_BEGIN
#define PACK_STRUCT_STRUCT
#define PACK_STRUCT_END
#elif defined(__IAR_SYSTEMS_ICC__)
/* IAR Compiler */
#define PACK_STRUCT_BEGIN #pragma pack(1)
#define PACK_STRUCT_STRUCT
#define PACK_STRUCT_END #pragma pack()
#define PACK_STRUCT_FIELD(x) x
#define PACK_STRUCT_USE_INCLUDES
#elif defined(__GNUC__)
/* GNU GCC Compiler */
...
...
include/libc/libc_errno.h
浏览文件 @
c7aa6f06
...
...
@@ -13,7 +13,7 @@
#include <rtconfig.h>
#if defined(RT_USING_NEWLIB) || defined(_WIN32) ||
defined( __GNUC__
)
#if defined(RT_USING_NEWLIB) || defined(_WIN32) ||
(defined( __GNUC__ ) && !defined(__ARMCC_VERSION)
)
/* use errno.h file in toolchains */
#include <errno.h>
#endif
...
...
@@ -45,7 +45,7 @@ defined in armcc/errno.h
#define ERROR_BASE_NO 0
#endif
#if !defined(RT_USING_NEWLIB) && !defined(_WIN32) && !
defined(__GNUC__
)
#if !defined(RT_USING_NEWLIB) && !defined(_WIN32) && !
(defined( __GNUC__ ) && !defined(__ARMCC_VERSION)
)
#define EPERM (ERROR_BASE_NO + 1)
#define ENOENT (ERROR_BASE_NO + 2)
...
...
include/libc/libc_fcntl.h
浏览文件 @
c7aa6f06
...
...
@@ -12,7 +12,7 @@
#ifndef LIBC_FCNTL_H__
#define LIBC_FCNTL_H__
#if defined(RT_USING_NEWLIB) || defined(_WIN32) ||
defined( __GNUC__
)
#if defined(RT_USING_NEWLIB) || defined(_WIN32) ||
(defined( __GNUC__ ) && !defined(__ARMCC_VERSION)
)
#include <fcntl.h>
#ifndef O_NONBLOCK
...
...
include/libc/libc_fdset.h
浏览文件 @
c7aa6f06
...
...
@@ -13,7 +13,7 @@
#include <rtconfig.h>
#if defined(RT_USING_NEWLIB) || defined(_WIN32) ||
defined( __GNUC__
)
#if defined(RT_USING_NEWLIB) || defined(_WIN32) ||
(defined( __GNUC__ ) && !defined(__ARMCC_VERSION)
)
#include <sys/types.h>
#if defined(HAVE_SYS_SELECT_H)
#include <sys/select.h>
...
...
include/libc/libc_stat.h
浏览文件 @
c7aa6f06
...
...
@@ -9,7 +9,7 @@
#include <rtconfig.h>
#if defined(RT_USING_NEWLIB) ||
defined( __GNUC__
)
#if defined(RT_USING_NEWLIB) ||
(defined( __GNUC__ ) && !defined(__ARMCC_VERSION)
)
/* use header file of newlib */
#include <sys/stat.h>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录