Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Libpng
提交
baa95a2d
T
Third Party Libpng
项目概览
OpenHarmony
/
Third Party Libpng
12 个月 前同步成功
通知
4
Star
22
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
Third Party Libpng
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
baa95a2d
编写于
9月 18, 2014
作者:
G
Glenn Randers-Pehrson
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[libpng16] Do not include <fenv.h> when FLOATING_ARITHMETIC is not supported.
上级
996046ae
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
23 addition
and
9 deletion
+23
-9
ANNOUNCE
ANNOUNCE
+5
-2
CHANGES
CHANGES
+4
-1
contrib/libtests/pngvalid.c
contrib/libtests/pngvalid.c
+14
-6
未找到文件。
ANNOUNCE
浏览文件 @
baa95a2d
Libpng 1.6.14beta02 - September 1
4
, 2014
Libpng 1.6.14beta02 - September 1
8
, 2014
This is not intended to be a public release. It will be replaced
within a few weeks by a public version or by another test version.
...
...
@@ -32,12 +32,15 @@ Version 1.6.14beta01 [September 14, 2014]
Claudio Fontana)
Add "#include <setjmp.h>" to contrib/tools/pngfix.c (John Bowler)
Version 1.6.14beta02 [September 1
4
, 2014]
Version 1.6.14beta02 [September 1
8
, 2014]
Use nanosleep() instead of usleep() in contrib/gregbook/rpng2-x.c
because usleep() is deprecated.
Define usleep() in contrib/gregbook/rpng2-x.c if not already defined
in unistd.h and nanosleep() is not available; fixes error introduced
in libpng-1.6.13.
Disable floating point exception handling in pngvalid.c when
PNG_FLOATING_ARITHMETIC is not supported (bug report by "zootus
at users.sourceforge.net").
Send comments/corrections/commendations to png-mng-implement at lists.sf.net
(subscription required; visit
...
...
CHANGES
浏览文件 @
baa95a2d
...
...
@@ -4985,12 +4985,15 @@ Version 1.6.14beta01 [September 14, 2014]
Claudio Fontana)
Add "#include <setjmp.h>" to contrib/tools/pngfix.c (John Bowler)
Version 1.6.14beta02 [September 1
4
, 2014]
Version 1.6.14beta02 [September 1
8
, 2014]
Use nanosleep() instead of usleep() in contrib/gregbook/rpng2-x.c
because usleep() is deprecated.
Define usleep() in contrib/gregbook/rpng2-x.c if not already defined
in unistd.h and nanosleep() is not available; fixes error introduced
in libpng-1.6.13.
Disable floating point exception handling in pngvalid.c when
PNG_FLOATING_ARITHMETIC is not supported (bug report by "zootus
at users.sourceforge.net").
Send comments/corrections/commendations to png-mng-implement at lists.sf.net
(subscription required; visit
...
...
contrib/libtests/pngvalid.c
浏览文件 @
baa95a2d
...
...
@@ -30,10 +30,6 @@
# include <config.h>
#endif
#ifdef HAVE_FEENABLEEXCEPT
/* from config.h, if included */
# include <fenv.h>
#endif
/* Define the following to use this test against your installed libpng, rather
* than the one being built here:
*/
...
...
@@ -43,6 +39,13 @@
# include "../../png.h"
#endif
#ifdef PNG_FLOATING_ARITHMETIC_SUPPORTED
# ifdef HAVE_FEENABLEEXCEPT
/* from config.h, if included */
# include <fenv.h>
# endif
#endif
#ifdef PNG_ZLIB_HEADER
# include PNG_ZLIB_HEADER
#else
...
...
@@ -9976,9 +9979,11 @@ static void signal_handler(int signum)
pos
=
safecat
(
msg
,
sizeof
msg
,
pos
,
"abort"
);
break
;
#ifdef PNG_FLOATING_ARITHMETIC_SUPPORTED
case
SIGFPE
:
pos
=
safecat
(
msg
,
sizeof
msg
,
pos
,
"floating point exception"
);
break
;
#endif
case
SIGILL
:
pos
=
safecat
(
msg
,
sizeof
msg
,
pos
,
"illegal instruction"
);
...
...
@@ -10044,18 +10049,21 @@ int main(int argc, char **argv)
/* Add appropriate signal handlers, just the ANSI specified ones: */
signal
(
SIGABRT
,
signal_handler
);
signal
(
SIGFPE
,
signal_handler
);
signal
(
SIGILL
,
signal_handler
);
signal
(
SIGINT
,
signal_handler
);
signal
(
SIGSEGV
,
signal_handler
);
signal
(
SIGTERM
,
signal_handler
);
#ifdef HAVE_FEENABLEEXCEPT
#ifdef PNG_FLOATING_ARITHMETIC_SUPPORTED
signal
(
SIGFPE
,
signal_handler
);
# ifdef HAVE_FEENABLEEXCEPT
/* Only required to enable FP exceptions on platforms where they start off
* disabled; this is not necessary but if it is not done pngvalid will likely
* end up ignoring FP conditions that other platforms fault.
*/
feenableexcept
(
FE_DIVBYZERO
|
FE_INVALID
|
FE_OVERFLOW
);
# endif
#endif
modifier_init
(
&
pm
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录