Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
小白菜888
Ffmpeg
提交
38434a9f
F
Ffmpeg
项目概览
小白菜888
/
Ffmpeg
通知
3
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
F
Ffmpeg
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
38434a9f
编写于
11月 10, 2017
作者:
D
Diego Biurrun
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
configure: Simplify restrict keyword handling
Skip a variable indirection and only redefine restrict if necessary.
上级
4cf84e25
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
7 addition
and
6 deletion
+7
-6
configure
configure
+7
-6
未找到文件。
configure
浏览文件 @
38434a9f
...
...
@@ -4144,9 +4144,8 @@ extern_prefix=${sym%%ff_extern*}
!
disabled inline_asm
&&
check_inline_asm inline_asm
'"" ::'
_restrict
=
for
restrict_keyword
in
restrict __restrict__ __restrict
;
do
check_cc
<<
EOF
&& _restrict=
$restrict_keyword
&& break
for
restrict_keyword
in
restrict __restrict__ __restrict
""
;
do
check_cc
<<
EOF
&& break
void foo(char *
$restrict_keyword
p);
EOF
done
...
...
@@ -4974,9 +4973,9 @@ elif enabled_any msvc icl; then
# MSVC 2013 and newer can handle it fine.
# If this declspec fails, force including stdlib.h before the restrict redefinition
# happens in config.h.
if
[
$
_restrict
!=
restrict
]
;
then
if
[
$
restrict_keyword
!=
restrict
]
;
then
check_cc
<<
EOF
|| add_cflags -FIstdlib.h
__declspec(
$
_restrict
) void*
foo(int);
__declspec(
$
restrict_keyword
) void *
foo(int);
EOF
fi
fi
...
...
@@ -5323,12 +5322,14 @@ cat > $TMPH <<EOF
#define LIBAV_LICENSE "
$(
c_escape
$license
)
"
#define AVCONV_DATADIR "
$(
eval
c_escape
$datadir
)
"
#define CC_IDENT "
$(
c_escape
${
cc_ident
:-
Unknown
compiler
}
)
"
#define restrict
$_restrict
#define EXTERN_PREFIX "
${
extern_prefix
}
"
#define EXTERN_ASM
${
extern_prefix
}
#define SLIBSUF "
$SLIBSUF
"
EOF
test
$restrict_keyword
!=
restrict
&&
echo
"#define restrict
$restrict_keyword
"
>>
$TMPH
test
-n
"
$malloc_prefix
"
&&
echo
"#define MALLOC_PREFIX
$malloc_prefix
"
>>
$TMPH
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录