29 #ifndef PNG_NO_LIMITS_H 46 #ifdef PNG_STDIO_SUPPORTED 56 #ifndef PNG_READ_INT_FUNCTIONS_SUPPORTED 57 # define PNG_USE_READ_MACROS 59 #if !defined(PNG_NO_USE_READ_MACROS) && !defined(PNG_USE_READ_MACROS) 60 # if PNG_DEFAULT_READ_MACROS 61 # define PNG_USE_READ_MACROS 83 # define PNGARG(arglist) OF(arglist) 87 # define PNGARG(arglist) () 89 # define PNGARG(arglist) arglist 180 #if ( defined(_Windows) || defined(_WINDOWS) || defined(WIN32) ||\ 181 defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) ) &&\ 182 ( defined(_X86_) || defined(_X64_) || defined(_M_IX86) ||\ 183 defined(_M_X64) || defined(_M_IA64) ) 189 # if PNG_API_RULE == 2 195 # define PNGCAPI __watcall 198 # if defined(__GNUC__) || (defined (_MSC_VER) && (_MSC_VER >= 800)) 199 # define PNGCAPI __cdecl 200 # if PNG_API_RULE == 1 201 # define PNGAPI __stdcall 209 # define PNGCAPI _cdecl 211 # if PNG_API_RULE == 1 && !defined(PNGAPI) 212 # define PNGAPI _stdcall 217 # if defined(PNGAPI) && !defined(PNG_USER_PRIVATEBUILD) 218 ERROR: PNG_USER_PRIVATEBUILD must be defined
if PNGAPI is changed
221 # if (defined(_MSC_VER) && _MSC_VER < 800) ||\ 222 (defined(__BORLANDC__) && __BORLANDC__ < 0x500) 227 # ifndef PNG_EXPORT_TYPE 228 # define PNG_EXPORT_TYPE(type) type PNG_IMPEXP 230 # define PNG_DLL_EXPORT __export 232 # define PNG_DLL_EXPORT __declspec(dllexport) 233 # ifndef PNG_DLL_IMPORT 234 # define PNG_DLL_IMPORT __declspec(dllimport) 239 # if (defined(__IBMC__) || defined(__IBMCPP__)) && defined(__OS2__) 240 # define PNGAPI _System 253 # define PNGCBAPI PNGCAPI 256 # define PNGAPI PNGCAPI 265 # if (defined(DLL_EXPORT) ||\ 266 defined(_WINDLL) || defined(_DLL) || defined(__DLL__) ||\ 268 defined(PNG_BUILD_DLL)) && defined(PNG_DLL_EXPORT) 270 # define PNG_IMPEXP PNG_DLL_EXPORT 274 # if defined(PNG_USE_DLL) && defined(PNG_DLL_IMPORT) 276 # define PNG_IMPEXP PNG_DLL_IMPORT 291 # define PNG_FUNCTION(type, name, args, attributes)\ 292 attributes type name args 295 # define PNG_FUNCTION(type, name, args, attributes)\ 296 attributes type name args 298 # define PNG_FUNCTION(type, name, args, attributes)\ 304 #ifndef PNG_EXPORT_TYPE 305 # define PNG_EXPORT_TYPE(type) PNG_IMPEXP type 313 # define PNG_EXPORTA(ordinal, type, name, args, attributes)\ 314 extern PNG_FUNCTION(PNG_EXPORT_TYPE(type),(PNGAPI name),PNGARG(args),\ 318 #define PNG_EXPORT(ordinal, type, name, args)\ 319 PNG_EXPORTA(ordinal, type, name, args, ) 323 # define PNG_REMOVED(ordinal, type, name, args, attributes) 327 # define PNG_CALLBACK(type, name, args, attributes)\ 328 type (PNGCBAPI name) PNGARG(args) attributes 338 #ifndef PNG_NO_PEDANTIC_WARNINGS 339 # ifndef PNG_PEDANTIC_WARNINGS_SUPPORTED 340 # define PNG_PEDANTIC_WARNINGS_SUPPORTED 344 #ifdef PNG_PEDANTIC_WARNINGS_SUPPORTED 351 # ifndef PNG_USE_RESULT 352 # define PNG_USE_RESULT __attribute__((__warn_unused_result__)) 354 # ifndef PNG_NORETURN 355 # define PNG_NORETURN __attribute__((__noreturn__)) 357 # ifndef PNG_PTR_NORETURN 358 # define PNG_PTR_NORETURN __attribute__((__noreturn__)) 360 # ifndef PNG_ALLOCATED 361 # define PNG_ALLOCATED __attribute__((__malloc__)) 368 # ifndef PNGLIB_BUILD 369 # ifndef PNG_DEPRECATED 370 # define PNG_DEPRECATED __attribute__((__deprecated__)) 372 # ifndef PNG_DEPSTRUCT 373 # define PNG_DEPSTRUCT __attribute__((__deprecated__)) 377 # define PNG_PRIVATE \ 378 __attribute__((warning("This function is not exported by libpng."))) 380 # define PNG_PRIVATE \ 381 __attribute__((__deprecated__)) 387 # ifndef PNG_USE_RESULT 388 # define PNG_USE_RESULT 390 # ifndef PNG_NORETURN 391 # define PNG_NORETURN __declspec(noreturn) 393 # ifndef PNG_PTR_NORETURN 394 # define PNG_PTR_NORETURN 396 # ifndef PNG_ALLOCATED 397 # define PNG_ALLOCATED __declspec(restrict) 404 # ifndef PNGLIB_BUILD 405 # ifndef PNG_DEPRECATED 406 # define PNG_DEPRECATED __declspec(deprecated) 408 # ifndef PNG_DEPSTRUCT 409 # define PNG_DEPSTRUCT __declspec(deprecated) 412 # define PNG_PRIVATE __declspec(deprecated) 418 #ifndef PNG_DEPRECATED 419 # define PNG_DEPRECATED 421 #ifndef PNG_USE_RESULT 422 # define PNG_USE_RESULT 425 # define PNG_NORETURN 427 #ifndef PNG_ALLOCATED 428 # define PNG_ALLOCATED 430 #ifndef PNG_DEPSTRUCT 431 # define PNG_DEPSTRUCT 436 #ifndef PNG_FP_EXPORT 437 # ifdef PNG_FLOATING_POINT_SUPPORTED 438 # define PNG_FP_EXPORT(ordinal, type, name, args)\ 439 PNG_EXPORT(ordinal, type, name, args) 441 # define PNG_FP_EXPORT(ordinal, type, name, args) 444 #ifndef PNG_FIXED_EXPORT 445 # ifdef PNG_FIXED_POINT_SUPPORTED 446 # define PNG_FIXED_EXPORT(ordinal, type, name, args)\ 447 PNG_EXPORT(ordinal, type, name, args) 449 # define PNG_FIXED_EXPORT(ordinal, type, name, args) 461 # ifndef PNG_NO_CONST 462 # define PNG_CONST const 476 #if defined(INT_MAX) && (INT_MAX > 0x7ffffffeL) 492 #define png_sizeof(x) (sizeof (x)) 507 # if defined(__LARGE__) || defined(__HUGE__) || defined(__COMPACT__) 513 # if !defined(__WIN32__) && !defined(__FLAT__) && !defined(__CYGWIN__) 514 # define PNG_MAX_MALLOC_64K 519 # define USE_FAR_KEYWORD 538 # define USE_FAR_KEYWORD 579 #ifdef PNG_STDIO_SUPPORTED 580 typedef FILE * png_FILE_p;
583 #ifdef PNG_FLOATING_POINT_SUPPORTED 584 typedef double FAR * png_doublep;
597 #ifdef PNG_FLOATING_POINT_SUPPORTED 598 typedef double FAR *
FAR * png_doublepp;
613 #if defined(__TURBOC__) && !defined(__FLAT__) 616 # if defined(_MSC_VER) && defined(MAXSEG_64K) 623 # if (defined(_Windows) || defined(_WINDOWS) || defined(_WINDOWS_)) && \ 624 (!defined(INT_MAX) || INT_MAX <= 0x7ffffffeL)
png_size_t FAR * png_size_tp
png_uint_32 FAR *FAR * png_uint_32pp
PNG_CONST void FAR * png_const_voidp
png_fixed_point FAR * png_fixed_point_p
PNG_CONST png_uint_32 FAR * png_const_uint_32p
PNG_CONST char FAR * png_const_charp
PNG_CONST png_int_16 FAR * png_const_int_16p
png_int_16 FAR *FAR * png_int_16pp
png_size_t png_alloc_size_t
png_byte FAR *FAR * png_bytepp
unsigned long png_uint_32
png_int_32 FAR * png_int_32p
PNG_CONST char FAR *FAR * png_const_charpp
unsigned short png_uint_16
png_uint_16 FAR * png_uint_16p
png_fixed_point FAR *FAR * png_fixed_point_pp
PNG_CONST png_byte FAR * png_const_bytep
PNG_CONST png_fixed_point FAR * png_const_fixed_point_p
PNG_CONST png_int_32 FAR * png_const_int_32p
png_int_32 FAR *FAR * png_int_32pp
png_uint_16 FAR *FAR * png_uint_16pp
png_int_32 png_fixed_point
char FAR *FAR * png_charpp
char FAR *FAR *FAR * png_charppp
PNG_CONST png_size_t FAR * png_const_size_tp
png_uint_32 FAR * png_uint_32p
PNG_CONST png_uint_16 FAR * png_const_uint_16p
png_int_16 FAR * png_int_16p