25 #ifndef PNG_BUILDING_SYMBOL_TABLE
30 # ifndef PNG_NO_LIMITS_H
47 # ifdef PNG_STDIO_SUPPORTED
58 #ifndef PNG_READ_INT_FUNCTIONS_SUPPORTED
59 # define PNG_USE_READ_MACROS
61 #if !defined(PNG_NO_USE_READ_MACROS) && !defined(PNG_USE_READ_MACROS)
62 # if PNG_DEFAULT_READ_MACROS
63 # define PNG_USE_READ_MACROS
85 # define PNGARG(arglist) OF(arglist)
89 # define PNGARG(arglist) ()
91 # define PNGARG(arglist) arglist
184 #if ( defined(_Windows) || defined(_WINDOWS) || defined(WIN32) ||\
185 defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) ) &&\
186 ( defined(_X86_) || defined(_X64_) || defined(_M_IX86) ||\
187 defined(_M_X64) || defined(_M_IA64) )
193 # if PNG_API_RULE == 2
199 # define PNGCAPI __watcall
202 # if defined(__GNUC__) || (defined (_MSC_VER) && (_MSC_VER >= 800))
203 # define PNGCAPI __cdecl
204 # if PNG_API_RULE == 1
205 # define PNGAPI __stdcall
213 # define PNGCAPI _cdecl
215 # if PNG_API_RULE == 1 && !defined(PNGAPI)
216 # define PNGAPI _stdcall
221 # if defined(PNGAPI) && !defined(PNG_USER_PRIVATEBUILD)
222 ERROR: PNG_USER_PRIVATEBUILD must be defined
if PNGAPI is changed
225 # if (defined(_MSC_VER) && _MSC_VER < 800) ||\
226 (defined(__BORLANDC__) && __BORLANDC__ < 0x500)
231 # ifndef PNG_EXPORT_TYPE
232 # define PNG_EXPORT_TYPE(type) type PNG_IMPEXP
234 # define PNG_DLL_EXPORT __export
236 # define PNG_DLL_EXPORT __declspec(dllexport)
237 # ifndef PNG_DLL_IMPORT
238 # define PNG_DLL_IMPORT __declspec(dllimport)
243 # if (defined(__IBMC__) || defined(__IBMCPP__)) && defined(__OS2__)
244 # define PNGAPI _System
257 # define PNGCBAPI PNGCAPI
260 # define PNGAPI PNGCAPI
268 # if defined(PNG_USE_DLL) && defined(PNG_DLL_IMPORT)
270 # define PNG_IMPEXP PNG_DLL_IMPORT
286 # define PNG_FUNCTION(type, name, args, attributes) attributes type name args
289 #ifndef PNG_EXPORT_TYPE
290 # define PNG_EXPORT_TYPE(type) PNG_IMPEXP type
299 # define PNG_EXPORTA(ordinal, type, name, args, attributes)\
300 PNG_FUNCTION(PNG_EXPORT_TYPE(type),(PNGAPI name),PNGARG(args), \
309 #define PNG_EXPORT(ordinal, type, name, args)\
310 PNG_EXPORTA(ordinal, type, name, args, PNG_EMPTY)
314 # define PNG_REMOVED(ordinal, type, name, args, attributes)
318 # define PNG_CALLBACK(type, name, args) type (PNGCBAPI name) PNGARG(args)
328 #ifndef PNG_NO_PEDANTIC_WARNINGS
329 # ifndef PNG_PEDANTIC_WARNINGS_SUPPORTED
330 # define PNG_PEDANTIC_WARNINGS_SUPPORTED
334 #ifdef PNG_PEDANTIC_WARNINGS_SUPPORTED
340 # if defined(__GNUC__)
341 # ifndef PNG_USE_RESULT
342 # define PNG_USE_RESULT __attribute__((__warn_unused_result__))
344 # ifndef PNG_NORETURN
345 # define PNG_NORETURN __attribute__((__noreturn__))
347 # ifndef PNG_ALLOCATED
348 # define PNG_ALLOCATED __attribute__((__malloc__))
350 # ifndef PNG_DEPRECATED
351 # define PNG_DEPRECATED __attribute__((__deprecated__))
355 # define PNG_PRIVATE \
356 __attribute__((warning("This function is not exported by libpng.")))
358 # define PNG_PRIVATE \
359 __attribute__((__deprecated__))
364 # if defined(_MSC_VER) && (_MSC_VER >= 1300)
365 # ifndef PNG_USE_RESULT
366 # define PNG_USE_RESULT
368 # ifndef PNG_NORETURN
369 # define PNG_NORETURN __declspec(noreturn)
371 # ifndef PNG_ALLOCATED
372 # if (_MSC_VER >= 1400)
373 # define PNG_ALLOCATED __declspec(restrict)
376 # ifndef PNG_DEPRECATED
377 # define PNG_DEPRECATED __declspec(deprecated)
380 # define PNG_PRIVATE __declspec(deprecated)
385 #ifndef PNG_DEPRECATED
386 # define PNG_DEPRECATED
388 #ifndef PNG_USE_RESULT
389 # define PNG_USE_RESULT
392 # define PNG_NORETURN
394 #ifndef PNG_ALLOCATED
395 # define PNG_ALLOCATED
400 #ifndef PNG_FP_EXPORT
401 # ifdef PNG_FLOATING_POINT_SUPPORTED
402 # define PNG_FP_EXPORT(ordinal, type, name, args)\
403 PNG_EXPORT(ordinal, type, name, args)
405 # define PNG_FP_EXPORT(ordinal, type, name, args)
408 #ifndef PNG_FIXED_EXPORT
409 # ifdef PNG_FIXED_POINT_SUPPORTED
410 # define PNG_FIXED_EXPORT(ordinal, type, name, args)\
411 PNG_EXPORT(ordinal, type, name, args)
413 # define PNG_FIXED_EXPORT(ordinal, type, name, args)
425 # ifndef PNG_NO_CONST
426 # define PNG_CONST const
440 #if defined(INT_MAX) && (INT_MAX > 0x7ffffffeL)
456 #define png_sizeof(x) (sizeof (x))
471 # if defined(__LARGE__) || defined(__HUGE__) || defined(__COMPACT__)
477 # if !defined(__WIN32__) && !defined(__FLAT__) && !defined(__CYGWIN__)
478 # define PNG_MAX_MALLOC_64K
483 # define USE_FAR_KEYWORD
502 # define USE_FAR_KEYWORD
543 #ifdef PNG_STDIO_SUPPORTED
544 typedef FILE * png_FILE_p;
547 #ifdef PNG_FLOATING_POINT_SUPPORTED
548 typedef double FAR * png_doublep;
561 #ifdef PNG_FLOATING_POINT_SUPPORTED
562 typedef double FAR *
FAR * png_doublepp;
577 #if defined(__TURBOC__) && !defined(__FLAT__)
580 # if defined(_MSC_VER) && defined(MAXSEG_64K)
587 # if (defined(_Windows) || defined(_WINDOWS) || defined(_WINDOWS_)) && \
588 (!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
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
typedef DWORD(WINAPI *XInputGetState_t)(DWORD dwUserIndex
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