22#define PNG_NO_WRITE_tIME
23#define PNG_NO_READ_tIME
24#define PNG_NO_CONSOLE_IO
41# define PNG_ZBUF_SIZE 8192
46#ifndef PNG_NO_READ_SUPPORTED
47# define PNG_READ_SUPPORTED
52#ifndef PNG_NO_WRITE_SUPPORTED
53# define PNG_WRITE_SUPPORTED
58#if !defined(PNG_1_0_X) && !defined(PNG_NO_MNG_FEATURES)
59# ifndef PNG_MNG_FEATURES_SUPPORTED
60# define PNG_MNG_FEATURES_SUPPORTED
64#ifndef PNG_NO_FLOATING_POINT_SUPPORTED
65# ifndef PNG_FLOATING_POINT_SUPPORTED
66# define PNG_FLOATING_POINT_SUPPORTED
78#if defined(MAXSEG_64K) && !defined(PNG_MAX_MALLOC_64K)
79# define PNG_MAX_MALLOC_64K
115#if defined(__CYGWIN__)
116# if defined(ALL_STATIC)
117# if defined(PNG_BUILD_DLL)
120# if defined(PNG_USE_DLL)
126# if !defined(PNG_STATIC)
130# if defined (PNG_BUILD_DLL)
131# if defined(PNG_STATIC)
134# if defined(PNG_USE_DLL)
137# if !defined(PNG_DLL)
141# if defined(PNG_STATIC)
142# if defined(PNG_USE_DLL)
149# if !defined(PNG_USE_DLL)
152# if !defined(PNG_DLL)
173#if defined(_WIN32_WCE)
176# define PNG_NO_CONSOLE_IO
183# ifndef PNG_CONSOLE_IO_SUPPORTED
184# ifndef PNG_NO_CONSOLE_IO
185# define PNG_NO_CONSOLE_IO
191# ifndef PNG_NO_CONSOLE_IO
192# define PNG_NO_CONSOLE_IO
200# if !defined(_WIN32_WCE)
216# define PNGARG(arglist) OF(arglist)
220# define PNGARG(arglist) ()
221# ifndef PNG_TYPECAST_NULL
222# define PNG_TYPECAST_NULL
225# define PNGARG(arglist) arglist
237# if (defined(__MWERKS__) && defined(macintosh)) || defined(applec) || \
238 defined(THINK_C) || defined(__SC__) || defined(TARGET_OS_MAC)
248#if !defined(PNG_SETJMP_NOT_SUPPORTED) && !defined(PNG_NO_SETJMP_SUPPORTED)
249# define PNG_SETJMP_SUPPORTED
252#ifdef PNG_SETJMP_SUPPORTED
259# define PNG_SAVE_BSD_SOURCE
263 __png.h__ already includes
setjmp.h;
264 __dont__ include it again.;
275# ifdef PNG_SAVE_BSD_SOURCE
277# undef PNG_SAVE_BSD_SOURCE
308#if defined(PNG_FLOATING_POINT_SUPPORTED)
314# if !defined(__MATH_H__) && !defined(__MATH_H) && !defined(__cmath__)
320# if defined(_AMIGA) && defined(__SASC) && defined(_M68881)
329#if (defined(__MWERKS__) && defined(WIN32)) || defined(__STDC__)
330# define PNG_ALWAYS_EXTERN
342#if defined(_MSC_VER) && (defined(WIN32) || defined(_Windows) || \
343 defined(_WINDOWS) || defined(_WIN32) || defined(__WIN32__))
351#ifndef PNG_DITHER_RED_BITS
352# define PNG_DITHER_RED_BITS 5
354#ifndef PNG_DITHER_GREEN_BITS
355# define PNG_DITHER_GREEN_BITS 5
357#ifndef PNG_DITHER_BLUE_BITS
358# define PNG_DITHER_BLUE_BITS 5
368#ifndef PNG_MAX_GAMMA_8
369# define PNG_MAX_GAMMA_8 11
375#ifndef PNG_GAMMA_THRESHOLD
376# define PNG_GAMMA_THRESHOLD 0.05
387# define PNG_CONST const
425#ifndef PNG_iTXt_SUPPORTED
426# if !defined(PNG_READ_iTXt_SUPPORTED) && !defined(PNG_NO_READ_iTXt)
427# define PNG_NO_READ_iTXt
429# if !defined(PNG_WRITE_iTXt_SUPPORTED) && !defined(PNG_NO_WRITE_iTXt)
430# define PNG_NO_WRITE_iTXt
440#ifdef PNG_LEGACY_SUPPORTED
441# define PNG_NO_FREE_ME
442# define PNG_NO_READ_UNKNOWN_CHUNKS
443# define PNG_NO_WRITE_UNKNOWN_CHUNKS
444# define PNG_NO_READ_USER_CHUNKS
445# define PNG_NO_READ_iCCP
446# define PNG_NO_WRITE_iCCP
447# define PNG_NO_READ_iTXt
448# define PNG_NO_WRITE_iTXt
449# define PNG_NO_READ_sCAL
450# define PNG_NO_WRITE_sCAL
451# define PNG_NO_READ_sPLT
452# define PNG_NO_WRITE_sPLT
453# define PNG_NO_INFO_IMAGE
454# define PNG_NO_READ_RGB_TO_GRAY
455# define PNG_NO_READ_USER_TRANSFORM
456# define PNG_NO_WRITE_USER_TRANSFORM
457# define PNG_NO_USER_MEM
458# define PNG_NO_READ_EMPTY_PLTE
459# define PNG_NO_MNG_FEATURES
460# define PNG_NO_FIXED_POINT_SUPPORTED
464#if !defined(PNG_FLOATING_POINT_SUPPORTED) || \
465 !defined(PNG_NO_FIXED_POINT_SUPPORTED)
466# define PNG_FIXED_POINT_SUPPORTED
469#ifndef PNG_NO_FREE_ME
470# define PNG_FREE_ME_SUPPORTED
473#if defined(PNG_READ_SUPPORTED)
475#if !defined(PNG_READ_TRANSFORMS_NOT_SUPPORTED) && \
476 !defined(PNG_NO_READ_TRANSFORMS)
477# define PNG_READ_TRANSFORMS_SUPPORTED
480#ifdef PNG_READ_TRANSFORMS_SUPPORTED
481# ifndef PNG_NO_READ_EXPAND
482# define PNG_READ_EXPAND_SUPPORTED
484# ifndef PNG_NO_READ_SHIFT
485# define PNG_READ_SHIFT_SUPPORTED
487# ifndef PNG_NO_READ_PACK
488# define PNG_READ_PACK_SUPPORTED
490# ifndef PNG_NO_READ_BGR
491# define PNG_READ_BGR_SUPPORTED
493# ifndef PNG_NO_READ_SWAP
494# define PNG_READ_SWAP_SUPPORTED
496# ifndef PNG_NO_READ_PACKSWAP
497# define PNG_READ_PACKSWAP_SUPPORTED
499# ifndef PNG_NO_READ_INVERT
500# define PNG_READ_INVERT_SUPPORTED
502# ifndef PNG_NO_READ_DITHER
503# define PNG_READ_DITHER_SUPPORTED
505# ifndef PNG_NO_READ_BACKGROUND
506# define PNG_READ_BACKGROUND_SUPPORTED
508# ifndef PNG_NO_READ_16_TO_8
509# define PNG_READ_16_TO_8_SUPPORTED
511# ifndef PNG_NO_READ_FILLER
512# define PNG_READ_FILLER_SUPPORTED
514# ifndef PNG_NO_READ_GAMMA
515# define PNG_READ_GAMMA_SUPPORTED
517# ifndef PNG_NO_READ_GRAY_TO_RGB
518# define PNG_READ_GRAY_TO_RGB_SUPPORTED
520# ifndef PNG_NO_READ_SWAP_ALPHA
521# define PNG_READ_SWAP_ALPHA_SUPPORTED
523# ifndef PNG_NO_READ_INVERT_ALPHA
524# define PNG_READ_INVERT_ALPHA_SUPPORTED
526# ifndef PNG_NO_READ_STRIP_ALPHA
527# define PNG_READ_STRIP_ALPHA_SUPPORTED
529# ifndef PNG_NO_READ_USER_TRANSFORM
530# define PNG_READ_USER_TRANSFORM_SUPPORTED
532# ifndef PNG_NO_READ_RGB_TO_GRAY
533# define PNG_READ_RGB_TO_GRAY_SUPPORTED
537#if !defined(PNG_NO_PROGRESSIVE_READ) && \
538 !defined(PNG_PROGRESSIVE_READ_NOT_SUPPORTED)
539# define PNG_PROGRESSIVE_READ_SUPPORTED
543#define PNG_READ_INTERLACING_SUPPORTED
545#ifndef PNG_NO_READ_COMPOSITE_NODIV
546# ifndef PNG_NO_READ_COMPOSITED_NODIV
547# define PNG_READ_COMPOSITE_NODIV_SUPPORTED
553#ifndef PNG_NO_READ_EMPTY_PLTE
554# define PNG_READ_EMPTY_PLTE_SUPPORTED
559#if defined(PNG_WRITE_SUPPORTED)
561# if !defined(PNG_WRITE_TRANSFORMS_NOT_SUPPORTED) && \
562 !defined(PNG_NO_WRITE_TRANSFORMS)
563# define PNG_WRITE_TRANSFORMS_SUPPORTED
566#ifdef PNG_WRITE_TRANSFORMS_SUPPORTED
567# ifndef PNG_NO_WRITE_SHIFT
568# define PNG_WRITE_SHIFT_SUPPORTED
570# ifndef PNG_NO_WRITE_PACK
571# define PNG_WRITE_PACK_SUPPORTED
573# ifndef PNG_NO_WRITE_BGR
574# define PNG_WRITE_BGR_SUPPORTED
576# ifndef PNG_NO_WRITE_SWAP
577# define PNG_WRITE_SWAP_SUPPORTED
579# ifndef PNG_NO_WRITE_PACKSWAP
580# define PNG_WRITE_PACKSWAP_SUPPORTED
582# ifndef PNG_NO_WRITE_INVERT
583# define PNG_WRITE_INVERT_SUPPORTED
585# ifndef PNG_NO_WRITE_FILLER
586# define PNG_WRITE_FILLER_SUPPORTED
588# ifndef PNG_NO_WRITE_SWAP_ALPHA
589# define PNG_WRITE_SWAP_ALPHA_SUPPORTED
591# ifndef PNG_NO_WRITE_INVERT_ALPHA
592# define PNG_WRITE_INVERT_ALPHA_SUPPORTED
594# ifndef PNG_NO_WRITE_USER_TRANSFORM
595# define PNG_WRITE_USER_TRANSFORM_SUPPORTED
599#if defined(PNG_READ_USER_TRANSFORM_SUPPORTED) || \
600 defined(PNG_WRITE_USER_TRANSFORM_SUPPORTED)
601# ifndef PNG_NO_USER_TRANSFORM_PTR
602# define PNG_USER_TRANSFORM_PTR_SUPPORTED
606#define PNG_WRITE_INTERLACING_SUPPORTED
610#if !defined(PNG_NO_WRITE_WEIGHTED_FILTER) && \
611 defined(PNG_FLOATING_POINT_SUPPORTED)
612# define PNG_WRITE_WEIGHTED_FILTER_SUPPORTED
616#ifndef PNG_NO_ERROR_NUMBERS
617#define PNG_ERROR_NUMBERS_SUPPORTED
621#ifndef PNG_NO_WRITE_FLUSH
622# define PNG_WRITE_FLUSH_SUPPORTED
626#ifndef PNG_NO_WRITE_EMPTY_PLTE
627# define PNG_WRITE_EMPTY_PLTE_SUPPORTED
633# define PNG_TIME_RFC1123_SUPPORTED
652#if !defined(PNG_NO_EASY_ACCESS) && !defined(PNG_EASY_ACCESS_SUPPORTED)
653# define PNG_EASY_ACCESS_SUPPORTED
658#if defined(PNG_READ_SUPPORTED) && !defined(PNG_NO_ASSEMBLER_CODE)
659# ifndef PNG_ASSEMBLER_CODE_SUPPORTED
660# define PNG_ASSEMBLER_CODE_SUPPORTED
662# if !defined(PNG_MMX_CODE_SUPPORTED) && !defined(PNG_NO_MMX_CODE)
663# define PNG_MMX_CODE_SUPPORTED
673#if !defined(PNG_1_0_X)
674#if !defined(PNG_NO_USER_MEM) && !defined(PNG_USER_MEM_SUPPORTED)
675# define PNG_USER_MEM_SUPPORTED
717#if defined(PNG_READ_SUPPORTED) && \
718 !defined(PNG_READ_ANCILLARY_CHUNKS_NOT_SUPPORTED) && \
719 !defined(PNG_NO_READ_ANCILLARY_CHUNKS)
720# define PNG_READ_ANCILLARY_CHUNKS_SUPPORTED
723#if defined(PNG_WRITE_SUPPORTED) && \
724 !defined(PNG_WRITE_ANCILLARY_CHUNKS_NOT_SUPPORTED) && \
725 !defined(PNG_NO_WRITE_ANCILLARY_CHUNKS)
726# define PNG_WRITE_ANCILLARY_CHUNKS_SUPPORTED
729#ifdef PNG_READ_ANCILLARY_CHUNKS_SUPPORTED
731#ifdef PNG_NO_READ_TEXT
732# define PNG_NO_READ_iTXt
733# define PNG_NO_READ_tEXt
734# define PNG_NO_READ_zTXt
736#ifndef PNG_NO_READ_bKGD
737# define PNG_READ_bKGD_SUPPORTED
738# define PNG_bKGD_SUPPORTED
740#ifndef PNG_NO_READ_cHRM
741# define PNG_READ_cHRM_SUPPORTED
742# define PNG_cHRM_SUPPORTED
744#ifndef PNG_NO_READ_gAMA
745# define PNG_READ_gAMA_SUPPORTED
746# define PNG_gAMA_SUPPORTED
748#ifndef PNG_NO_READ_hIST
749# define PNG_READ_hIST_SUPPORTED
750# define PNG_hIST_SUPPORTED
752#ifndef PNG_NO_READ_iCCP
753# define PNG_READ_iCCP_SUPPORTED
754# define PNG_iCCP_SUPPORTED
756#ifndef PNG_NO_READ_iTXt
757# ifndef PNG_READ_iTXt_SUPPORTED
758# define PNG_READ_iTXt_SUPPORTED
760# ifndef PNG_iTXt_SUPPORTED
761# define PNG_iTXt_SUPPORTED
764#ifndef PNG_NO_READ_oFFs
765# define PNG_READ_oFFs_SUPPORTED
766# define PNG_oFFs_SUPPORTED
768#ifndef PNG_NO_READ_pCAL
769# define PNG_READ_pCAL_SUPPORTED
770# define PNG_pCAL_SUPPORTED
772#ifndef PNG_NO_READ_sCAL
773# define PNG_READ_sCAL_SUPPORTED
774# define PNG_sCAL_SUPPORTED
776#ifndef PNG_NO_READ_pHYs
777# define PNG_READ_pHYs_SUPPORTED
778# define PNG_pHYs_SUPPORTED
780#ifndef PNG_NO_READ_sBIT
781# define PNG_READ_sBIT_SUPPORTED
782# define PNG_sBIT_SUPPORTED
784#ifndef PNG_NO_READ_sPLT
785# define PNG_READ_sPLT_SUPPORTED
786# define PNG_sPLT_SUPPORTED
788#ifndef PNG_NO_READ_sRGB
789# define PNG_READ_sRGB_SUPPORTED
790# define PNG_sRGB_SUPPORTED
792#ifndef PNG_NO_READ_tEXt
793# define PNG_READ_tEXt_SUPPORTED
794# define PNG_tEXt_SUPPORTED
796#ifndef PNG_NO_READ_tIME
797# define PNG_READ_tIME_SUPPORTED
798# define PNG_tIME_SUPPORTED
800#ifndef PNG_NO_READ_tRNS
801# define PNG_READ_tRNS_SUPPORTED
802# define PNG_tRNS_SUPPORTED
804#ifndef PNG_NO_READ_zTXt
805# define PNG_READ_zTXt_SUPPORTED
806# define PNG_zTXt_SUPPORTED
808#ifndef PNG_NO_READ_UNKNOWN_CHUNKS
809# define PNG_READ_UNKNOWN_CHUNKS_SUPPORTED
810# ifndef PNG_UNKNOWN_CHUNKS_SUPPORTED
811# define PNG_UNKNOWN_CHUNKS_SUPPORTED
813# ifndef PNG_NO_HANDLE_AS_UNKNOWN
814# define PNG_HANDLE_AS_UNKNOWN_SUPPORTED
817#if !defined(PNG_NO_READ_USER_CHUNKS) && \
818 defined(PNG_READ_UNKNOWN_CHUNKS_SUPPORTED)
819# define PNG_READ_USER_CHUNKS_SUPPORTED
820# define PNG_USER_CHUNKS_SUPPORTED
821# ifdef PNG_NO_READ_UNKNOWN_CHUNKS
822# undef PNG_NO_READ_UNKNOWN_CHUNKS
824# ifdef PNG_NO_HANDLE_AS_UNKNOWN
825# undef PNG_NO_HANDLE_AS_UNKNOWN
828#ifndef PNG_NO_READ_OPT_PLTE
829# define PNG_READ_OPT_PLTE_SUPPORTED
831#if defined(PNG_READ_iTXt_SUPPORTED) || defined(PNG_READ_tEXt_SUPPORTED) || \
832 defined(PNG_READ_zTXt_SUPPORTED)
833# define PNG_READ_TEXT_SUPPORTED
834# define PNG_TEXT_SUPPORTED
839#ifdef PNG_WRITE_ANCILLARY_CHUNKS_SUPPORTED
841#ifdef PNG_NO_WRITE_TEXT
842# define PNG_NO_WRITE_iTXt
843# define PNG_NO_WRITE_tEXt
844# define PNG_NO_WRITE_zTXt
846#ifndef PNG_NO_WRITE_bKGD
847# define PNG_WRITE_bKGD_SUPPORTED
848# ifndef PNG_bKGD_SUPPORTED
849# define PNG_bKGD_SUPPORTED
852#ifndef PNG_NO_WRITE_cHRM
853# define PNG_WRITE_cHRM_SUPPORTED
854# ifndef PNG_cHRM_SUPPORTED
855# define PNG_cHRM_SUPPORTED
858#ifndef PNG_NO_WRITE_gAMA
859# define PNG_WRITE_gAMA_SUPPORTED
860# ifndef PNG_gAMA_SUPPORTED
861# define PNG_gAMA_SUPPORTED
864#ifndef PNG_NO_WRITE_hIST
865# define PNG_WRITE_hIST_SUPPORTED
866# ifndef PNG_hIST_SUPPORTED
867# define PNG_hIST_SUPPORTED
870#ifndef PNG_NO_WRITE_iCCP
871# define PNG_WRITE_iCCP_SUPPORTED
872# ifndef PNG_iCCP_SUPPORTED
873# define PNG_iCCP_SUPPORTED
876#ifndef PNG_NO_WRITE_iTXt
877# ifndef PNG_WRITE_iTXt_SUPPORTED
878# define PNG_WRITE_iTXt_SUPPORTED
880# ifndef PNG_iTXt_SUPPORTED
881# define PNG_iTXt_SUPPORTED
884#ifndef PNG_NO_WRITE_oFFs
885# define PNG_WRITE_oFFs_SUPPORTED
886# ifndef PNG_oFFs_SUPPORTED
887# define PNG_oFFs_SUPPORTED
890#ifndef PNG_NO_WRITE_pCAL
891# define PNG_WRITE_pCAL_SUPPORTED
892# ifndef PNG_pCAL_SUPPORTED
893# define PNG_pCAL_SUPPORTED
896#ifndef PNG_NO_WRITE_sCAL
897# define PNG_WRITE_sCAL_SUPPORTED
898# ifndef PNG_sCAL_SUPPORTED
899# define PNG_sCAL_SUPPORTED
902#ifndef PNG_NO_WRITE_pHYs
903# define PNG_WRITE_pHYs_SUPPORTED
904# ifndef PNG_pHYs_SUPPORTED
905# define PNG_pHYs_SUPPORTED
908#ifndef PNG_NO_WRITE_sBIT
909# define PNG_WRITE_sBIT_SUPPORTED
910# ifndef PNG_sBIT_SUPPORTED
911# define PNG_sBIT_SUPPORTED
914#ifndef PNG_NO_WRITE_sPLT
915# define PNG_WRITE_sPLT_SUPPORTED
916# ifndef PNG_sPLT_SUPPORTED
917# define PNG_sPLT_SUPPORTED
920#ifndef PNG_NO_WRITE_sRGB
921# define PNG_WRITE_sRGB_SUPPORTED
922# ifndef PNG_sRGB_SUPPORTED
923# define PNG_sRGB_SUPPORTED
926#ifndef PNG_NO_WRITE_tEXt
927# define PNG_WRITE_tEXt_SUPPORTED
928# ifndef PNG_tEXt_SUPPORTED
929# define PNG_tEXt_SUPPORTED
932#ifndef PNG_NO_WRITE_tIME
933# define PNG_WRITE_tIME_SUPPORTED
934# ifndef PNG_tIME_SUPPORTED
935# define PNG_tIME_SUPPORTED
938#ifndef PNG_NO_WRITE_tRNS
939# define PNG_WRITE_tRNS_SUPPORTED
940# ifndef PNG_tRNS_SUPPORTED
941# define PNG_tRNS_SUPPORTED
944#ifndef PNG_NO_WRITE_zTXt
945# define PNG_WRITE_zTXt_SUPPORTED
946# ifndef PNG_zTXt_SUPPORTED
947# define PNG_zTXt_SUPPORTED
950#ifndef PNG_NO_WRITE_UNKNOWN_CHUNKS
951# define PNG_WRITE_UNKNOWN_CHUNKS_SUPPORTED
952# ifndef PNG_UNKNOWN_CHUNKS_SUPPORTED
953# define PNG_UNKNOWN_CHUNKS_SUPPORTED
955# ifndef PNG_NO_HANDLE_AS_UNKNOWN
956# ifndef PNG_HANDLE_AS_UNKNOWN_SUPPORTED
957# define PNG_HANDLE_AS_UNKNOWN_SUPPORTED
961#if defined(PNG_WRITE_iTXt_SUPPORTED) || defined(PNG_WRITE_tEXt_SUPPORTED) || \
962 defined(PNG_WRITE_zTXt_SUPPORTED)
963# define PNG_WRITE_TEXT_SUPPORTED
964# ifndef PNG_TEXT_SUPPORTED
965# define PNG_TEXT_SUPPORTED
975#ifndef PNG_NO_INFO_IMAGE
976# define PNG_INFO_IMAGE_SUPPORTED
980#if defined(PNG_tIME_SUPPORTED)
981# if !defined(_WIN32_WCE)
1018# if defined(__LARGE__) || defined(__HUGE__) || defined(__COMPACT__)
1024# if !defined(__WIN32__) && !defined(__FLAT__) && !defined(__CYGWIN__)
1025# define PNG_MAX_MALLOC_64K
1030# define USE_FAR_KEYWORD
1048# if defined(M_I86MM)
1049# define USE_FAR_KEYWORD
1081#if defined(_WIN32_WCE)
1082typedef HANDLE png_FILE_p;
1084typedef FILE * png_FILE_p;
1088#ifdef PNG_FLOATING_POINT_SUPPORTED
1101#ifdef PNG_FLOATING_POINT_SUPPORTED
1134#if !defined(PNG_DLL) && (defined(PNG_BUILD_DLL) || defined(PNG_USE_DLL))
1141#if defined(__CYGWIN__)
1142# if !defined(PNG_STATIC)
1143# if defined(PNG_USE_GLOBAL_ARRAYS)
1144# undef PNG_USE_GLOBAL_ARRAYS
1146# if !defined(PNG_USE_LOCAL_ARRAYS)
1147# define PNG_USE_LOCAL_ARRAYS
1150# if defined(PNG_USE_LOCAL_ARRAYS) || defined(PNG_NO_GLOBAL_ARRAYS)
1151# if defined(PNG_USE_GLOBAL_ARRAYS)
1152# undef PNG_USE_GLOBAL_ARRAYS
1156# if !defined(PNG_USE_LOCAL_ARRAYS) && !defined(PNG_USE_GLOBAL_ARRAYS)
1157# define PNG_USE_LOCAL_ARRAYS
1165#if !defined(PNG_USE_LOCAL_ARRAYS) && !defined(PNG_USE_GLOBAL_ARRAYS)
1166# if defined(PNG_NO_GLOBAL_ARRAYS) || (defined(__GNUC__) && defined(PNG_DLL))
1167# define PNG_USE_LOCAL_ARRAYS
1169# define PNG_USE_GLOBAL_ARRAYS
1173#if defined(__CYGWIN__)
1175# define PNGAPI __cdecl
1189#if defined(__MINGW32__) && !defined(PNG_MODULEDEF)
1190# ifndef PNG_NO_MODULEDEF
1191# define PNG_NO_MODULEDEF
1195#if !defined(PNG_IMPEXP) && defined(PNG_BUILD_DLL) && !defined(PNG_NO_MODULEDEF)
1199#if defined(PNG_DLL) || defined(_DLL) || defined(__DLL__ ) || \
1200 (( defined(_Windows) || defined(_WINDOWS) || \
1201 defined(WIN32) || defined(_WIN32) || defined(__WIN32__) ))
1203# if defined(__GNUC__) || (defined (_MSC_VER) && (_MSC_VER >= 800))
1204# define PNGAPI __cdecl
1206# define PNGAPI _cdecl
1209# if !defined(PNG_IMPEXP) && (!defined(PNG_DLL) || \
1214# if !defined(PNG_IMPEXP)
1216# define PNG_EXPORT_TYPE1(type,symbol) PNG_IMPEXP type PNGAPI symbol
1217# define PNG_EXPORT_TYPE2(type,symbol) type PNG_IMPEXP PNGAPI symbol
1220# if defined(_MSC_VER) || defined(__BORLANDC__)
1221# if (_MSC_VER >= 800) || (__BORLANDC__ >= 0x500)
1222# define PNG_EXPORT PNG_EXPORT_TYPE1
1224# define PNG_EXPORT PNG_EXPORT_TYPE2
1225# if defined(PNG_BUILD_DLL)
1226# define PNG_IMPEXP __export
1235# if !defined(PNG_IMPEXP)
1236# if defined(PNG_BUILD_DLL)
1237# define PNG_IMPEXP __declspec(dllexport)
1239# define PNG_IMPEXP __declspec(dllimport)
1244# if (defined(__IBMC__) || defined(IBMCPP__)) && defined(__OS2__)
1245# define PNGAPI _System
1265# define PNG_EXPORT(type,symbol) PNG_IMPEXP type PNGAPI symbol
1268#ifdef PNG_USE_GLOBAL_ARRAYS
1269# ifndef PNG_EXPORT_VAR
1270# define PNG_EXPORT_VAR(type) extern PNG_IMPEXP type
1279# define PNG_ABORT() abort()
1282#ifdef PNG_SETJMP_SUPPORTED
1283# define png_jmpbuf(png_ptr) ((png_ptr)->jmpbuf)
1285# define png_jmpbuf(png_ptr) \
1286 (LIBPNG_WAS_COMPILED_WITH__PNG_SETJMP_NOT_SUPPORTED)
1289#if defined(USE_FAR_KEYWORD)
1293# define CVT_PTR(ptr) (png_far_to_near(png_ptr,ptr,CHECK))
1294# define CVT_PTR_NOCHECK(ptr) (png_far_to_near(png_ptr,ptr,NOCHECK))
1295# define png_strcpy _fstrcpy
1296# define png_strlen _fstrlen
1297# define png_memcmp _fmemcmp
1298# define png_memcpy _fmemcpy
1299# define png_memset _fmemset
1301# define CVT_PTR(ptr) (ptr)
1302# define CVT_PTR_NOCHECK(ptr) (ptr)
1303# define png_strcpy strcpy
1304# define png_strlen strlen
1305# define png_memcmp memcmp
1306# define png_memcpy memcpy
1307# define png_memset memset
1314#if (PNG_ZBUF_SIZE > 65536) && defined(PNG_MAX_MALLOC_64K)
1315# undef PNG_ZBUF_SIZE
1316# define PNG_ZBUF_SIZE 65536
1319#ifdef PNG_READ_SUPPORTED
1321#if defined(PNG_INTERNAL)
1329#ifndef PNG_MMX_ROWBYTES_THRESHOLD_DEFAULT
1330# define PNG_MMX_ROWBYTES_THRESHOLD_DEFAULT 128
1332#ifndef PNG_MMX_BITDEPTH_THRESHOLD_DEFAULT
1333# define PNG_MMX_BITDEPTH_THRESHOLD_DEFAULT 9
1340#ifdef PNG_USE_PNGVCRD
1341# define PNG_HAVE_ASSEMBLER_COMBINE_ROW
1342# define PNG_HAVE_ASSEMBLER_READ_INTERLACE
1343# define PNG_HAVE_ASSEMBLER_READ_FILTER_ROW
1350#ifdef PNG_USE_PNGGCCRD
1351# define PNG_HAVE_ASSEMBLER_COMBINE_ROW
1352# define PNG_HAVE_ASSEMBLER_READ_INTERLACE
1353# define PNG_HAVE_ASSEMBLER_READ_FILTER_ROW
int setjmp(jmp_buf env)
Save calling environment for long jump.
png_fixed_point ** png_fixed_point_pp
unsigned short png_uint_16
png_uint_32 ** png_uint_32pp
unsigned long png_uint_32
png_int_16 ** png_int_16pp
png_uint_16 * png_uint_16p
const char ** png_const_charpp
png_fixed_point * png_fixed_point_p
png_uint_32 * png_uint_32p
png_int_32 png_fixed_point
png_int_32 ** png_int_32pp
const char * png_const_charp
png_uint_16 ** png_uint_16pp