Revert "[devel] Changed empty parameter to PNG_BLANK in PNG_EXPORTA definition to"

This reverts commit 2438825d77.
This commit is contained in:
Glenn Randers-Pehrson
2011-02-12 08:54:42 -06:00
parent 2438825d77
commit c83d421d9e
4 changed files with 27 additions and 46 deletions

View File

@@ -287,7 +287,7 @@
* PNG_EXPORT function for every compiler.
*/
#ifndef PNG_FUNCTION
# ifdef __GNUC__
# if defined(__GNUC__)
# define PNG_FUNCTION(type, name, args, attributes)\
attributes type name args
# else /* !GNUC */
@@ -310,19 +310,13 @@
* scripts directory.
*/
#ifndef PNG_EXPORTA
#if defined(_MSC_VER) && (_MSC_VER < 1300)
# define PNG_EXPORTA(ordinal, type, name, args, attributes)\
extern PNG_FUNCTION(PNG_EXPORT_TYPE(type),(PNGAPI name),PNGARG(args),\
PNG_BLANK)
#else
# define PNG_EXPORTA(ordinal, type, name, args, attributes)\
extern PNG_FUNCTION(PNG_EXPORT_TYPE(type),(PNGAPI name),PNGARG(args),\
attributes)
#endif
#endif
#define PNG_EXPORT(ordinal, type, name, args)\
PNG_EXPORTA(ordinal, type, name, args, PNG_BLANK)
PNG_EXPORTA(ordinal, type, name, args, )
/* Use PNG_REMOVED to comment out a removed interface. */
#ifndef PNG_REMOVED
@@ -353,7 +347,7 @@
* functions in png.h will generate compiler warnings. Added at libpng
* version 1.2.41.
*/
# ifdef __GNUC__
# if defined(__GNUC__)
# ifndef PNG_USE_RESULT
# define PNG_USE_RESULT __attribute__((__warn_unused_result__))
# endif
@@ -391,20 +385,16 @@
# endif /* __GNUC__ */
# ifdef _MSC_VER /* may need to check value */
# ifndef PNG_USE_RESULT
# define PNG_USE_RESULT /* not supported */
# define PNG_USE_RESULT /*not supported*/
# endif
# ifndef PNG_NORETURN
# define PNG_NORETURN __declspec(noreturn)
# endif
# ifndef PNG_PTR_NORETURN
# define PNG_PTR_NORETURN /* not supported */
# define PNG_PTR_NORETURN /*not supported*/
# endif
# ifndef PNG_ALLOCATED
# if (_MSC_VER < 1300)
# define PNG_ALLOCATED /* not supported */
# else
# define PNG_ALLOCATED __declspec(restrict)
# endif
# define PNG_ALLOCATED __declspec(restrict)
# endif
/* This specifically protects structure members that should only be