[devel] Put #ifndef PNG_EXTERN, #endif around #define PNG_EXTERN in pngpriv.h

This commit is contained in:
Glenn Randers-Pehrson 2010-07-12 06:29:17 -05:00
parent 8f9de7acbd
commit 0ee51445f6
2 changed files with 9 additions and 6 deletions

View File

@ -1,5 +1,5 @@
Libpng 1.5.0beta34 - July 6, 2010
Libpng 1.5.0beta34 - July 11, 2010
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.
@ -226,7 +226,7 @@ version 1.5.0beta24 [May 7, 2010]
offset of the png_ptr->rowbuf pointer into png_ptr->big_row_buf.
Added more blank lines for readability.
version 1.5.0beta25 [July 6, 2010]
version 1.5.0beta25 [July 11, 2010]
In pngpread.c: png_push_have_row() add check for new_row > height
Removed the now-redundant check for out-of-bounds new_row from example.c
@ -278,7 +278,8 @@ version 1.5.0beta33 [July 6, 2010]
Changed "extern PNG_EXPORT" to "PNG_EXPORT" in png.h (Jan Nijtmans)
Changed "extern" to "PNG_EXTERN" in pngpriv.h (except for the 'extern "C" {')
version 1.5.0beta34 [July 6, 2010]
version 1.5.0beta34 [July 11, 2010]
Put #ifndef PNG_EXTERN, #endif around the define PNG_EXTERN in pngpriv.h
Send comments/corrections/commendations to png-mng-implement at lists.sf.net:
(subscription required; visit

View File

@ -1,7 +1,7 @@
/* pngpriv.h - private declarations for use inside libpng
*
* libpng version 1.5.0beta34 - July 6, 2010
* libpng version 1.5.0beta34 - July 11, 2010
* For conditions of distribution and use, see copyright notice in png.h
* Copyright (c) 1998-2010 Glenn Randers-Pehrson
* (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
@ -143,6 +143,7 @@
# define PNG_GAMMA_THRESHOLD 0.05
#endif
#ifndef PNG_EXTERN
/* The functions exported by PNG_EXTERN are internal functions, which
* aren't usually used outside the library (as far as I know), so it is
* debatable if they should be exported at all. In the future, when it
@ -151,6 +152,7 @@
# define PNG_EXTERN extern
*/
# define PNG_EXTERN
#endif
/* Other defines specific to compilers can go here. Try to keep
* them inside an appropriate ifdef/endif pair for portability.