Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Libpng
提交
b3b71680
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,发现更多精彩内容 >>
提交
b3b71680
编写于
5月 03, 2011
作者:
G
Glenn Randers-Pehrson
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[devel] Added appropriate feature test macros (_POSIX_SOURCE, _ISOC99_SOURCE)
to ensure libpng sees the correct API.
上级
1384c048
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
32 addition
and
3 deletion
+32
-3
ANNOUNCE
ANNOUNCE
+7
-2
CHANGES
CHANGES
+6
-1
pngpriv.h
pngpriv.h
+15
-0
pngtest.c
pngtest.c
+2
-0
pngvalid.c
pngvalid.c
+2
-0
未找到文件。
ANNOUNCE
浏览文件 @
b3b71680
Libpng 1.5.3beta05 -
April 29
, 2011
Libpng 1.5.3beta05 -
May 4
, 2011
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.
...
...
@@ -76,7 +76,12 @@ Version 1.5.3beta04 [April 27, 2011]
Changed png_struct jmp_buf member name from png_jmpbuf to tmp_jmpbuf to
avoid a clash with the png_jmpbuf macro on some platforms.
Version 1.5.3beta05 [April 29, 2011]
Version 1.5.3beta05 [May 4, 2011]
Added appropriate feature test macros to ensure libpng sees the correct API
_POSIX_SOURCE is defined in pngpriv.h, pngtest.c and pngvalid.c to ensure
that POSIX conformant systems disable non-POSIX APIs. _ISOC99_SOURCE is
defined in pngpriv.h to obtain the ISO C99 snprintf definition, when
available.
Send comments/corrections/commendations to png-mng-implement at lists.sf.net:
(subscription required; visit
...
...
CHANGES
浏览文件 @
b3b71680
...
...
@@ -3337,7 +3337,12 @@ Version 1.5.3beta04 [April 27, 2011]
Changed png_struct jmp_buf member name from png_jmpbuf to tmp_jmpbuf to
avoid a possible clash with the png_jmpbuf macro on some platforms.
Version 1.5.3beta05 [April 29, 2011]
Version 1.5.3beta05 [May 4, 2011]
Added appropriate feature test macros to ensure libpng sees the correct API
_POSIX_SOURCE is defined in pngpriv.h, pngtest.c and pngvalid.c to ensure
that POSIX conformant systems disable non-POSIX APIs. _ISOC99_SOURCE is
defined in pngpriv.h to obtain the ISO C99 snprintf definition, when
available.
Send comments/corrections/commendations to png-mng-implement at lists.sf.net
(subscription required; visit
...
...
pngpriv.h
浏览文件 @
b3b71680
...
...
@@ -25,6 +25,21 @@
#ifndef PNGPRIV_H
#define PNGPRIV_H
/* Feature Test Macros. The following are defined here to ensure that correctly
* implemented libraries reveal the APIs libpng needs to build and hide those
* that are not needed and potentially damaging to the compilation.
*
* Feature Test Macros must be defined before any system header is included (see
* POSIX 1003.1 2.8.2 "POSIX Symbols."
*
* These macros only have an effect if the operating system supports either
* POSIX 1003.1 or C99, or both. On other operating systems (particularly
* Windows/Visual Studio) there is no effect; the OS specific tests below are
* still required (as of 2011-05-02.)
*/
#define _POSIX_SOURCE 1
/* Just the POSIX 1003.1 and C89 APIs */
#define _ISOC99_SOURCE 1
/* for snprintf */
/* This is required for the definition of abort(), used as a last ditch
* error handler when all else fails.
*/
...
...
pngtest.c
浏览文件 @
b3b71680
...
...
@@ -31,6 +31,8 @@
* of files at once by typing "pngtest -m file1.png file2.png ..."
*/
#define _POSIX_SOURCE 1
#include "zlib.h"
#include "png.h"
/* Copied from pngpriv.h but only used in error messages below. */
...
...
pngvalid.c
浏览文件 @
b3b71680
...
...
@@ -19,6 +19,8 @@
* transformations performed by libpng.
*/
#define _POSIX_SOURCE 1
#include "png.h"
#if PNG_LIBPNG_VER < 10500
/* This delibarately lacks the PNG_CONST. */
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录