113 |
111 |
114 #ifndef PNG_NO_WRITE_SUPPORTED |
112 #ifndef PNG_NO_WRITE_SUPPORTED |
115 # define PNG_WRITE_SUPPORTED |
113 # define PNG_WRITE_SUPPORTED |
116 #endif |
114 #endif |
117 |
115 |
|
116 /* Enabled in 1.4.0. */ |
|
117 #ifdef PNG_ALLOW_BENIGN_ERRORS |
|
118 # define png_benign_error png_warning |
|
119 # define png_chunk_benign_error png_chunk_warning |
|
120 #else |
|
121 # ifndef PNG_BENIGN_ERRORS_SUPPORTED |
|
122 # define png_benign_error png_error |
|
123 # define png_chunk_benign_error png_chunk_error |
|
124 # endif |
|
125 #endif |
|
126 |
|
127 /* Added at libpng version 1.4.0 */ |
|
128 #if !defined(PNG_NO_WARNINGS) && !defined(PNG_WARNINGS_SUPPORTED) |
|
129 # define PNG_WARNINGS_SUPPORTED |
|
130 #endif |
|
131 |
|
132 /* Added at libpng version 1.4.0 */ |
|
133 #if !defined(PNG_NO_ERROR_TEXT) && !defined(PNG_ERROR_TEXT_SUPPORTED) |
|
134 # define PNG_ERROR_TEXT_SUPPORTED |
|
135 #endif |
|
136 |
|
137 /* Added at libpng version 1.4.0 */ |
|
138 #if !defined(PNG_NO_CHECK_cHRM) && !defined(PNG_CHECK_cHRM_SUPPORTED) |
|
139 # define PNG_CHECK_cHRM_SUPPORTED |
|
140 #endif |
|
141 |
|
142 /* Added at libpng version 1.4.0 */ |
|
143 #if !defined(PNG_NO_ALIGNED_MEMORY) && !defined(PNG_ALIGNED_MEMORY_SUPPORTED) |
|
144 # define PNG_ALIGNED_MEMORY_SUPPORTED |
|
145 #endif |
|
146 |
118 /* Enabled by default in 1.2.0. You can disable this if you don't need to |
147 /* Enabled by default in 1.2.0. You can disable this if you don't need to |
119 support PNGs that are embedded in MNG datastreams */ |
148 support PNGs that are embedded in MNG datastreams */ |
120 #if !defined(PNG_1_0_X) && !defined(PNG_NO_MNG_FEATURES) |
149 #ifndef PNG_NO_MNG_FEATURES |
121 # ifndef PNG_MNG_FEATURES_SUPPORTED |
150 # ifndef PNG_MNG_FEATURES_SUPPORTED |
122 # define PNG_MNG_FEATURES_SUPPORTED |
151 # define PNG_MNG_FEATURES_SUPPORTED |
123 # endif |
152 # endif |
124 #endif |
153 #endif |
125 |
154 |
|
155 /* Added at libpng version 1.4.0 */ |
126 #ifndef PNG_NO_FLOATING_POINT_SUPPORTED |
156 #ifndef PNG_NO_FLOATING_POINT_SUPPORTED |
127 # ifndef PNG_FLOATING_POINT_SUPPORTED |
157 # ifndef PNG_FLOATING_POINT_SUPPORTED |
128 # define PNG_FLOATING_POINT_SUPPORTED |
158 # define PNG_FLOATING_POINT_SUPPORTED |
129 # endif |
159 # endif |
130 #endif |
160 #endif |
|
161 |
|
162 /* Added at libpng-1.4.0beta49 for testing (this test is no longer used |
|
163 in libpng and png_calloc() is always present) |
|
164 */ |
|
165 #define PNG_CALLOC_SUPPORTED |
131 |
166 |
132 /* If you are running on a machine where you cannot allocate more |
167 /* If you are running on a machine where you cannot allocate more |
133 * than 64K of memory at once, uncomment this. While libpng will not |
168 * than 64K of memory at once, uncomment this. While libpng will not |
134 * normally need that much memory in a chunk (unless you load up a very |
169 * normally need that much memory in a chunk (unless you load up a very |
135 * large file), zlib needs to know how big of a chunk it can use, and |
170 * large file), zlib needs to know how big of a chunk it can use, and |
475 */ |
449 */ |
476 |
450 |
477 /* Any features you will not be using can be undef'ed here */ |
451 /* Any features you will not be using can be undef'ed here */ |
478 |
452 |
479 /* GR-P, 0.96a: Set "*TRANSFORMS_SUPPORTED as default but allow user |
453 /* GR-P, 0.96a: Set "*TRANSFORMS_SUPPORTED as default but allow user |
480 * to turn it off with "*TRANSFORMS_NOT_SUPPORTED" or *PNG_NO_*_TRANSFORMS |
454 * to turn it off with PNG_NO_READ|WRITE_TRANSFORMS on the compile line, |
481 * on the compile line, then pick and choose which ones to define without |
455 * then pick and choose which ones to define without having to edit this |
482 * having to edit this file. It is safe to use the *TRANSFORMS_NOT_SUPPORTED |
456 * file. It is safe to use the PNG_NO_READ|WRITE_TRANSFORMS |
483 * if you only want to have a png-compliant reader/writer but don't need |
457 * if you only want to have a png-compliant reader/writer but don't need |
484 * any of the extra transformations. This saves about 80 kbytes in a |
458 * any of the extra transformations. This saves about 80 kbytes in a |
485 * typical installation of the library. (PNG_NO_* form added in version |
459 * typical installation of the library. (PNG_NO_* form added in version |
486 * 1.0.1c, for consistency) |
460 * 1.0.1c, for consistency; PNG_*_TRANSFORMS_NOT_SUPPORTED deprecated in |
487 */ |
461 * 1.4.0) |
488 |
462 */ |
489 /* The size of the png_text structure changed in libpng-1.0.6 when |
|
490 * iTXt support was added. iTXt support was turned off by default through |
|
491 * libpng-1.2.x, to support old apps that malloc the png_text structure |
|
492 * instead of calling png_set_text() and letting libpng malloc it. It |
|
493 * will be turned on by default in libpng-1.4.0. |
|
494 */ |
|
495 |
|
496 #if defined(PNG_1_0_X) || defined (PNG_1_2_X) |
|
497 # ifndef PNG_NO_iTXt_SUPPORTED |
|
498 # define PNG_NO_iTXt_SUPPORTED |
|
499 # endif |
|
500 # ifndef PNG_NO_READ_iTXt |
|
501 # define PNG_NO_READ_iTXt |
|
502 # endif |
|
503 # ifndef PNG_NO_WRITE_iTXt |
|
504 # define PNG_NO_WRITE_iTXt |
|
505 # endif |
|
506 #endif |
|
507 |
|
508 #if !defined(PNG_NO_iTXt_SUPPORTED) |
|
509 # if !defined(PNG_READ_iTXt_SUPPORTED) && !defined(PNG_NO_READ_iTXt) |
|
510 # define PNG_READ_iTXt |
|
511 # endif |
|
512 # if !defined(PNG_WRITE_iTXt_SUPPORTED) && !defined(PNG_NO_WRITE_iTXt) |
|
513 # define PNG_WRITE_iTXt |
|
514 # endif |
|
515 #endif |
|
516 |
|
517 /* The following support, added after version 1.0.0, can be turned off here en |
|
518 * masse by defining PNG_LEGACY_SUPPORTED in case you need binary compatibility |
|
519 * with old applications that require the length of png_struct and png_info |
|
520 * to remain unchanged. |
|
521 */ |
|
522 |
|
523 #ifdef PNG_LEGACY_SUPPORTED |
|
524 # define PNG_NO_FREE_ME |
|
525 # define PNG_NO_READ_UNKNOWN_CHUNKS |
|
526 # define PNG_NO_WRITE_UNKNOWN_CHUNKS |
|
527 # define PNG_NO_HANDLE_AS_UNKNOWN |
|
528 # define PNG_NO_READ_USER_CHUNKS |
|
529 # define PNG_NO_READ_iCCP |
|
530 # define PNG_NO_WRITE_iCCP |
|
531 # define PNG_NO_READ_iTXt |
|
532 # define PNG_NO_WRITE_iTXt |
|
533 # define PNG_NO_READ_sCAL |
|
534 # define PNG_NO_WRITE_sCAL |
|
535 # define PNG_NO_READ_sPLT |
|
536 # define PNG_NO_WRITE_sPLT |
|
537 # define PNG_NO_INFO_IMAGE |
|
538 # define PNG_NO_READ_RGB_TO_GRAY |
|
539 # define PNG_NO_READ_USER_TRANSFORM |
|
540 # define PNG_NO_WRITE_USER_TRANSFORM |
|
541 # define PNG_NO_USER_MEM |
|
542 # define PNG_NO_READ_EMPTY_PLTE |
|
543 # define PNG_NO_MNG_FEATURES |
|
544 # define PNG_NO_FIXED_POINT_SUPPORTED |
|
545 #endif |
|
546 |
463 |
547 /* Ignore attempt to turn off both floating and fixed point support */ |
464 /* Ignore attempt to turn off both floating and fixed point support */ |
548 #if !defined(PNG_FLOATING_POINT_SUPPORTED) || \ |
465 #if !defined(PNG_FLOATING_POINT_SUPPORTED) || \ |
549 !defined(PNG_NO_FIXED_POINT_SUPPORTED) |
466 !defined(PNG_NO_FIXED_POINT_SUPPORTED) |
550 # define PNG_FIXED_POINT_SUPPORTED |
467 # define PNG_FIXED_POINT_SUPPORTED |
551 #endif |
468 #endif |
552 |
469 |
553 #ifndef PNG_NO_FREE_ME |
|
554 # define PNG_FREE_ME_SUPPORTED |
|
555 #endif |
|
556 |
|
557 #ifdef PNG_READ_SUPPORTED |
470 #ifdef PNG_READ_SUPPORTED |
558 |
471 |
|
472 /* PNG_READ_TRANSFORMS_NOT_SUPPORTED is deprecated. */ |
559 #if !defined(PNG_READ_TRANSFORMS_NOT_SUPPORTED) && \ |
473 #if !defined(PNG_READ_TRANSFORMS_NOT_SUPPORTED) && \ |
560 !defined(PNG_NO_READ_TRANSFORMS) |
474 !defined(PNG_NO_READ_TRANSFORMS) |
561 # define PNG_READ_TRANSFORMS_SUPPORTED |
475 # define PNG_READ_TRANSFORMS_SUPPORTED |
562 #endif |
476 #endif |
563 |
477 |
616 # ifndef PNG_NO_READ_RGB_TO_GRAY |
532 # ifndef PNG_NO_READ_RGB_TO_GRAY |
617 # define PNG_READ_RGB_TO_GRAY_SUPPORTED |
533 # define PNG_READ_RGB_TO_GRAY_SUPPORTED |
618 # endif |
534 # endif |
619 #endif /* PNG_READ_TRANSFORMS_SUPPORTED */ |
535 #endif /* PNG_READ_TRANSFORMS_SUPPORTED */ |
620 |
536 |
|
537 /* PNG_PROGRESSIVE_READ_NOT_SUPPORTED is deprecated. */ |
621 #if !defined(PNG_NO_PROGRESSIVE_READ) && \ |
538 #if !defined(PNG_NO_PROGRESSIVE_READ) && \ |
622 !defined(PNG_PROGRESSIVE_READ_SUPPORTED) /* if you don't do progressive */ |
539 !defined(PNG_PROGRESSIVE_READ_NOT_SUPPORTED) /* if you don't do progressive */ |
623 # define PNG_PROGRESSIVE_READ_SUPPORTED /* reading. This is not talking */ |
540 # define PNG_PROGRESSIVE_READ_SUPPORTED /* reading. This is not talking */ |
624 #endif /* about interlacing capability! You'll */ |
541 #endif /* about interlacing capability! You'll */ |
625 /* still have interlacing unless you change the following line: */ |
542 /* still have interlacing unless you change the following define: */ |
626 |
543 |
627 #define PNG_READ_INTERLACING_SUPPORTED /* required in PNG-compliant decoders */ |
544 #define PNG_READ_INTERLACING_SUPPORTED /* required for PNG-compliant decoders */ |
|
545 |
|
546 /* PNG_NO_SEQUENTIAL_READ_SUPPORTED is deprecated. */ |
|
547 #if !defined(PNG_NO_SEQUENTIAL_READ) && \ |
|
548 !defined(PNG_SEQUENTIAL_READ_SUPPORTED) && \ |
|
549 !defined(PNG_NO_SEQUENTIAL_READ_SUPPORTED) |
|
550 # define PNG_SEQUENTIAL_READ_SUPPORTED |
|
551 #endif |
628 |
552 |
629 #ifndef PNG_NO_READ_COMPOSITE_NODIV |
553 #ifndef PNG_NO_READ_COMPOSITE_NODIV |
630 # ifndef PNG_NO_READ_COMPOSITED_NODIV /* libpng-1.0.x misspelling */ |
554 # ifndef PNG_NO_READ_COMPOSITED_NODIV /* libpng-1.0.x misspelling */ |
631 # define PNG_READ_COMPOSITE_NODIV_SUPPORTED /* well tested on Intel, SGI */ |
555 # define PNG_READ_COMPOSITE_NODIV_SUPPORTED /* well tested on Intel, SGI */ |
632 # endif |
556 # endif |
633 #endif |
557 #endif |
634 |
558 |
635 #if defined(PNG_1_0_X) || defined (PNG_1_2_X) |
559 #if !defined(PNG_NO_GET_INT_32) || defined(PNG_READ_oFFS_SUPPORTED) || \ |
636 /* Deprecated, will be removed from version 2.0.0. |
560 defined(PNG_READ_pCAL_SUPPORTED) |
637 Use PNG_MNG_FEATURES_SUPPORTED instead. */ |
561 # ifndef PNG_GET_INT_32_SUPPORTED |
638 #ifndef PNG_NO_READ_EMPTY_PLTE |
562 # define PNG_GET_INT_32_SUPPORTED |
639 # define PNG_READ_EMPTY_PLTE_SUPPORTED |
563 # endif |
640 #endif |
|
641 #endif |
564 #endif |
642 |
565 |
643 #endif /* PNG_READ_SUPPORTED */ |
566 #endif /* PNG_READ_SUPPORTED */ |
644 |
567 |
645 #ifdef PNG_WRITE_SUPPORTED |
568 #ifdef PNG_WRITE_SUPPORTED |
646 |
569 |
647 # if !defined(PNG_WRITE_TRANSFORMS_NOT_SUPPORTED) && \ |
570 /* PNG_WRITE_TRANSFORMS_NOT_SUPPORTED is deprecated. */ |
|
571 #if !defined(PNG_WRITE_TRANSFORMS_NOT_SUPPORTED) && \ |
648 !defined(PNG_NO_WRITE_TRANSFORMS) |
572 !defined(PNG_NO_WRITE_TRANSFORMS) |
649 # define PNG_WRITE_TRANSFORMS_SUPPORTED |
573 # define PNG_WRITE_TRANSFORMS_SUPPORTED |
650 #endif |
574 #endif |
651 |
575 |
652 #ifdef PNG_WRITE_TRANSFORMS_SUPPORTED |
576 #ifdef PNG_WRITE_TRANSFORMS_SUPPORTED |
743 */ |
664 */ |
744 #if !defined(PNG_NO_EASY_ACCESS) && !defined(PNG_EASY_ACCESS_SUPPORTED) |
665 #if !defined(PNG_NO_EASY_ACCESS) && !defined(PNG_EASY_ACCESS_SUPPORTED) |
745 # define PNG_EASY_ACCESS_SUPPORTED |
666 # define PNG_EASY_ACCESS_SUPPORTED |
746 #endif |
667 #endif |
747 |
668 |
748 /* PNG_ASSEMBLER_CODE was enabled by default in version 1.2.0 |
669 /* Added at libpng-1.2.0 */ |
749 * and removed from version 1.2.20. The following will be removed |
|
750 * from libpng-1.4.0 |
|
751 */ |
|
752 |
|
753 #if defined(PNG_READ_SUPPORTED) && !defined(PNG_NO_OPTIMIZED_CODE) |
|
754 # ifndef PNG_OPTIMIZED_CODE_SUPPORTED |
|
755 # define PNG_OPTIMIZED_CODE_SUPPORTED |
|
756 # endif |
|
757 #endif |
|
758 |
|
759 #if defined(PNG_READ_SUPPORTED) && !defined(PNG_NO_ASSEMBLER_CODE) |
|
760 # ifndef PNG_ASSEMBLER_CODE_SUPPORTED |
|
761 # define PNG_ASSEMBLER_CODE_SUPPORTED |
|
762 # endif |
|
763 |
|
764 # if defined(__GNUC__) && defined(__x86_64__) && (__GNUC__ < 4) |
|
765 /* work around 64-bit gcc compiler bugs in gcc-3.x */ |
|
766 # if !defined(PNG_MMX_CODE_SUPPORTED) && !defined(PNG_NO_MMX_CODE) |
|
767 # define PNG_NO_MMX_CODE |
|
768 # endif |
|
769 # endif |
|
770 |
|
771 # if defined(__APPLE__) |
|
772 # if !defined(PNG_MMX_CODE_SUPPORTED) && !defined(PNG_NO_MMX_CODE) |
|
773 # define PNG_NO_MMX_CODE |
|
774 # endif |
|
775 # endif |
|
776 |
|
777 # if (defined(__MWERKS__) && ((__MWERKS__ < 0x0900) || macintosh)) |
|
778 # if !defined(PNG_MMX_CODE_SUPPORTED) && !defined(PNG_NO_MMX_CODE) |
|
779 # define PNG_NO_MMX_CODE |
|
780 # endif |
|
781 # endif |
|
782 |
|
783 # if !defined(PNG_MMX_CODE_SUPPORTED) && !defined(PNG_NO_MMX_CODE) |
|
784 # define PNG_MMX_CODE_SUPPORTED |
|
785 # endif |
|
786 |
|
787 #endif |
|
788 /* end of obsolete code to be removed from libpng-1.4.0 */ |
|
789 |
|
790 #if !defined(PNG_1_0_X) |
|
791 #if !defined(PNG_NO_USER_MEM) && !defined(PNG_USER_MEM_SUPPORTED) |
670 #if !defined(PNG_NO_USER_MEM) && !defined(PNG_USER_MEM_SUPPORTED) |
792 # define PNG_USER_MEM_SUPPORTED |
671 # define PNG_USER_MEM_SUPPORTED |
793 #endif |
672 #endif |
794 #endif /* PNG_1_0_X */ |
|
795 |
673 |
796 /* Added at libpng-1.2.6 */ |
674 /* Added at libpng-1.2.6 */ |
797 #if !defined(PNG_1_0_X) |
|
798 #ifndef PNG_SET_USER_LIMITS_SUPPORTED |
675 #ifndef PNG_SET_USER_LIMITS_SUPPORTED |
799 #if !defined(PNG_NO_SET_USER_LIMITS) && !defined(PNG_SET_USER_LIMITS_SUPPORTED) |
676 # ifndef PNG_NO_SET_USER_LIMITS |
800 # define PNG_SET_USER_LIMITS_SUPPORTED |
677 # define PNG_SET_USER_LIMITS_SUPPORTED |
801 #endif |
678 # endif |
802 #endif |
679 #endif |
803 #endif /* PNG_1_0_X */ |
680 |
804 |
681 /* Added at libpng-1.0.16 and 1.2.6. To accept all valid PNGs no matter |
805 /* Added at libpng-1.0.16 and 1.2.6. To accept all valid PNGS no matter |
|
806 * how large, set these limits to 0x7fffffffL |
682 * how large, set these limits to 0x7fffffffL |
807 */ |
683 */ |
808 #ifndef PNG_USER_WIDTH_MAX |
684 #ifndef PNG_USER_WIDTH_MAX |
809 # define PNG_USER_WIDTH_MAX 1000000L |
685 # define PNG_USER_WIDTH_MAX 1000000L |
810 #endif |
686 #endif |
811 #ifndef PNG_USER_HEIGHT_MAX |
687 #ifndef PNG_USER_HEIGHT_MAX |
812 # define PNG_USER_HEIGHT_MAX 1000000L |
688 # define PNG_USER_HEIGHT_MAX 1000000L |
813 #endif |
689 #endif |
814 |
690 |
815 /* Added at libpng-1.2.34 and 1.4.0 */ |
691 /* Added at libpng-1.4.0 */ |
|
692 #ifndef PNG_USER_CHUNK_CACHE_MAX |
|
693 # define PNG_USER_CHUNK_CACHE_MAX 0x7fffffffL |
|
694 #endif |
|
695 |
|
696 /* Added at libpng-1.4.0 */ |
|
697 #if !defined(PNG_NO_IO_STATE) && !defined(PNG_IO_STATE_SUPPORTED) |
|
698 # define PNG_IO_STATE_SUPPORTED |
|
699 #endif |
|
700 |
|
701 #ifndef PNG_LITERAL_SHARP |
|
702 # define PNG_LITERAL_SHARP 0x23 |
|
703 #endif |
|
704 #ifndef PNG_LITERAL_LEFT_SQUARE_BRACKET |
|
705 # define PNG_LITERAL_LEFT_SQUARE_BRACKET 0x5b |
|
706 #endif |
|
707 #ifndef PNG_LITERAL_RIGHT_SQUARE_BRACKET |
|
708 # define PNG_LITERAL_RIGHT_SQUARE_BRACKET 0x5d |
|
709 #endif |
816 #ifndef PNG_STRING_NEWLINE |
710 #ifndef PNG_STRING_NEWLINE |
817 #define PNG_STRING_NEWLINE "\n" |
711 #define PNG_STRING_NEWLINE "\n" |
818 #endif |
712 #endif |
819 |
713 |
820 /* These are currently experimental features, define them if you want */ |
714 /* These are currently experimental features, define them if you want */ |
821 |
715 |
822 /* very little testing */ |
716 /* Very little testing */ |
823 /* |
717 /* |
824 #ifdef PNG_READ_SUPPORTED |
718 #ifdef PNG_READ_SUPPORTED |
825 # ifndef PNG_READ_16_TO_8_ACCURATE_SCALE_SUPPORTED |
719 # ifndef PNG_READ_16_TO_8_ACCURATE_SCALE_SUPPORTED |
826 # define PNG_READ_16_TO_8_ACCURATE_SCALE_SUPPORTED |
720 # define PNG_READ_16_TO_8_ACCURATE_SCALE_SUPPORTED |
827 # endif |
721 # endif |
834 #ifndef PNG_READ_BIG_ENDIAN_SUPPORTED |
728 #ifndef PNG_READ_BIG_ENDIAN_SUPPORTED |
835 # define PNG_READ_BIG_ENDIAN_SUPPORTED |
729 # define PNG_READ_BIG_ENDIAN_SUPPORTED |
836 #endif |
730 #endif |
837 */ |
731 */ |
838 |
732 |
839 /* Buggy compilers (e.g., gcc 2.7.2.2) need this */ |
733 #if !defined(PNG_NO_USE_READ_MACROS) && !defined(PNG_USE_READ_MACROS) |
840 /* |
734 # define PNG_USE_READ_MACROS |
841 #define PNG_NO_POINTER_INDEXING |
735 #endif |
842 */ |
736 |
843 |
737 /* Buggy compilers (e.g., gcc 2.7.2.2) need PNG_NO_POINTER_INDEXING */ |
844 /* These functions are turned off by default, as they will be phased out. */ |
738 |
845 /* |
739 #if !defined(PNG_NO_POINTER_INDEXING) && \ |
846 #define PNG_USELESS_TESTS_SUPPORTED |
740 !defined(PNG_POINTER_INDEXING_SUPPORTED) |
847 #define PNG_CORRECT_PALETTE_SUPPORTED |
741 # define PNG_POINTER_INDEXING_SUPPORTED |
848 */ |
742 #endif |
|
743 |
849 |
744 |
850 /* Any chunks you are not interested in, you can undef here. The |
745 /* Any chunks you are not interested in, you can undef here. The |
851 * ones that allocate memory may be expecially important (hIST, |
746 * ones that allocate memory may be expecially important (hIST, |
852 * tEXt, zTXt, tRNS, pCAL). Others will just save time and make png_info |
747 * tEXt, zTXt, tRNS, pCAL). Others will just save time and make png_info |
853 * a bit smaller. |
748 * a bit smaller. |
854 */ |
749 */ |
855 |
750 |
|
751 /* The size of the png_text structure changed in libpng-1.0.6 when |
|
752 * iTXt support was added. iTXt support was turned off by default through |
|
753 * libpng-1.2.x, to support old apps that malloc the png_text structure |
|
754 * instead of calling png_set_text() and letting libpng malloc it. It |
|
755 * was turned on by default in libpng-1.4.0. |
|
756 */ |
|
757 |
|
758 /* PNG_READ_ANCILLARY_CHUNKS_NOT_SUPPORTED is deprecated. */ |
856 #if defined(PNG_READ_SUPPORTED) && \ |
759 #if defined(PNG_READ_SUPPORTED) && \ |
857 !defined(PNG_READ_ANCILLARY_CHUNKS_NOT_SUPPORTED) && \ |
760 !defined(PNG_READ_ANCILLARY_CHUNKS_NOT_SUPPORTED) && \ |
858 !defined(PNG_NO_READ_ANCILLARY_CHUNKS) |
761 !defined(PNG_NO_READ_ANCILLARY_CHUNKS) |
859 # define PNG_READ_ANCILLARY_CHUNKS_SUPPORTED |
762 # define PNG_READ_ANCILLARY_CHUNKS_SUPPORTED |
860 #endif |
763 #endif |
861 |
764 |
|
765 /* PNG_WRITE_ANCILLARY_CHUNKS_NOT_SUPPORTED is deprecated. */ |
862 #if defined(PNG_WRITE_SUPPORTED) && \ |
766 #if defined(PNG_WRITE_SUPPORTED) && \ |
863 !defined(PNG_WRITE_ANCILLARY_CHUNKS_NOT_SUPPORTED) && \ |
767 !defined(PNG_WRITE_ANCILLARY_CHUNKS_NOT_SUPPORTED) && \ |
864 !defined(PNG_NO_WRITE_ANCILLARY_CHUNKS) |
768 !defined(PNG_NO_WRITE_ANCILLARY_CHUNKS) |
865 # define PNG_WRITE_ANCILLARY_CHUNKS_SUPPORTED |
769 # define PNG_WRITE_ANCILLARY_CHUNKS_SUPPORTED |
866 #endif |
770 #endif |
1121 */ |
1039 */ |
1122 #ifndef PNG_NO_INFO_IMAGE |
1040 #ifndef PNG_NO_INFO_IMAGE |
1123 # define PNG_INFO_IMAGE_SUPPORTED |
1041 # define PNG_INFO_IMAGE_SUPPORTED |
1124 #endif |
1042 #endif |
1125 |
1043 |
1126 /* need the time information for reading tIME chunks */ |
1044 /* Need the time information for converting tIME chunks */ |
1127 #if defined(PNG_tIME_SUPPORTED) |
1045 #ifdef PNG_CONVERT_tIME_SUPPORTED |
1128 # if !defined(_WIN32_WCE) |
|
1129 /* "time.h" functions are not supported on WindowsCE */ |
1046 /* "time.h" functions are not supported on WindowsCE */ |
1130 # include <time.h> |
1047 # include <time.h> |
1131 # endif |
|
1132 #endif |
1048 #endif |
1133 |
1049 |
1134 /* Some typedefs to get us started. These should be safe on most of the |
1050 /* Some typedefs to get us started. These should be safe on most of the |
1135 * common platforms. The typedefs should be at least as large as the |
1051 * common platforms. The typedefs should be at least as large as the |
1136 * numbers suggest (a png_uint_32 must be at least 32 bits long), but they |
1052 * numbers suggest (a png_uint_32 must be at least 32 bits long), but they |
1137 * don't have to be exactly that size. Some compilers dislike passing |
1053 * don't have to be exactly that size. Some compilers dislike passing |
1138 * unsigned shorts as function parameters, so you may be better off using |
1054 * unsigned shorts as function parameters, so you may be better off using |
1139 * unsigned int for png_uint_16. Likewise, for 64-bit systems, you may |
1055 * unsigned int for png_uint_16. |
1140 * want to have unsigned int for png_uint_32 instead of unsigned long. |
1056 */ |
1141 */ |
1057 |
1142 |
1058 #if defined(INT_MAX) && (INT_MAX > 0x7ffffffeL) |
|
1059 typedef unsigned int png_uint_32; |
|
1060 typedef int png_int_32; |
|
1061 #else |
1143 typedef unsigned long png_uint_32; |
1062 typedef unsigned long png_uint_32; |
1144 typedef long png_int_32; |
1063 typedef long png_int_32; |
|
1064 #endif |
1145 typedef unsigned short png_uint_16; |
1065 typedef unsigned short png_uint_16; |
1146 typedef short png_int_16; |
1066 typedef short png_int_16; |
1147 typedef unsigned char png_byte; |
1067 typedef unsigned char png_byte; |
1148 |
1068 |
1149 /* This is usually size_t. It is typedef'ed just in case you need it to |
1069 #ifdef PNG_NO_SIZE_T |
1150 change (I'm not sure if you will or not, so I thought I'd be safe) */ |
1070 typedef unsigned int png_size_t; |
1151 #ifdef PNG_SIZE_T |
|
1152 typedef PNG_SIZE_T png_size_t; |
|
1153 # define png_sizeof(x) png_convert_size(sizeof(x)) |
|
1154 #else |
1071 #else |
1155 typedef size_t png_size_t; |
1072 typedef size_t png_size_t; |
1156 # define png_sizeof(x) sizeof(x) |
1073 #endif |
1157 #endif |
1074 #define png_sizeof(x) sizeof(x) |
1158 |
1075 |
1159 /* The following is needed for medium model support. It cannot be in the |
1076 /* The following is needed for medium model support. It cannot be in the |
1160 * PNG_INTERNAL section. Needs modification for other compilers besides |
1077 * pngpriv.h header. Needs modification for other compilers besides |
1161 * MSC. Model independent support declares all arrays and pointers to be |
1078 * MSC. Model independent support declares all arrays and pointers to be |
1162 * large using the far keyword. The zlib version used must also support |
1079 * large using the far keyword. The zlib version used must also support |
1163 * model independent data. As of version zlib 1.0.4, the necessary changes |
1080 * model independent data. As of version zlib 1.0.4, the necessary changes |
1164 * have been made in zlib. The USE_FAR_KEYWORD define triggers other |
1081 * have been made in zlib. The USE_FAR_KEYWORD define triggers other |
1165 * changes that are needed. (Tim Wegner) |
1082 * changes that are needed. (Tim Wegner) |
1166 */ |
1083 */ |
1167 |
1084 |
1168 /* Separate compiler dependencies (problem here is that zlib.h always |
1085 /* Separate compiler dependencies (problem here is that zlib.h always |
1169 defines FAR. (SJT) */ |
1086 * defines FAR. (SJT) |
|
1087 */ |
1170 #ifdef __BORLANDC__ |
1088 #ifdef __BORLANDC__ |
1171 # if defined(__LARGE__) || defined(__HUGE__) || defined(__COMPACT__) |
1089 # if defined(__LARGE__) || defined(__HUGE__) || defined(__COMPACT__) |
1172 # define LDATA 1 |
1090 # define LDATA 1 |
1173 # else |
1091 # else |
1174 # define LDATA 0 |
1092 # define LDATA 0 |
1369 # if !defined(PNG_IMPEXP) && (!defined(PNG_DLL) || \ |
1236 # if !defined(PNG_IMPEXP) && (!defined(PNG_DLL) || \ |
1370 0 /* WINCOMPILER_WITH_NO_SUPPORT_FOR_DECLIMPEXP */) |
1237 0 /* WINCOMPILER_WITH_NO_SUPPORT_FOR_DECLIMPEXP */) |
1371 # define PNG_IMPEXP |
1238 # define PNG_IMPEXP |
1372 # endif |
1239 # endif |
1373 |
1240 |
1374 # if !defined(PNG_IMPEXP) |
1241 # ifndef PNG_IMPEXP |
1375 |
1242 |
1376 # define PNG_EXPORT_TYPE1(type,symbol) PNG_IMPEXP type PNGAPI symbol |
1243 # define PNG_EXPORT_TYPE1(type,symbol) PNG_IMPEXP type PNGAPI symbol |
1377 # define PNG_EXPORT_TYPE2(type,symbol) type PNG_IMPEXP PNGAPI symbol |
1244 # define PNG_EXPORT_TYPE2(type,symbol) type PNG_IMPEXP PNGAPI symbol |
1378 |
1245 |
1379 /* Borland/Microsoft */ |
1246 /* Borland/Microsoft */ |
1380 # if defined(_MSC_VER) || defined(__BORLANDC__) |
1247 # if defined(_MSC_VER) || defined(__BORLANDC__) |
1381 # if (_MSC_VER >= 800) || (__BORLANDC__ >= 0x500) |
1248 # if (_MSC_VER >= 800) || (__BORLANDC__ >= 0x500) |
1382 # define PNG_EXPORT PNG_EXPORT_TYPE1 |
1249 # define PNG_EXPORT PNG_EXPORT_TYPE1 |
1383 # else |
1250 # else |
1384 # define PNG_EXPORT PNG_EXPORT_TYPE2 |
1251 # define PNG_EXPORT PNG_EXPORT_TYPE2 |
1385 # if defined(PNG_BUILD_DLL) |
1252 # ifdef PNG_BUILD_DLL |
1386 # define PNG_IMPEXP __export |
1253 # define PNG_IMPEXP __export |
1387 # else |
1254 # else |
1388 # define PNG_IMPEXP /*__import */ /* doesn't exist AFAIK in |
1255 # define PNG_IMPEXP /*__import */ /* doesn't exist AFAIK in VC++ */ |
1389 VC++ */ |
1256 # endif /* Exists in Borland C++ for |
1390 # endif /* Exists in Borland C++ for |
1257 C++ classes (== huge) */ |
1391 C++ classes (== huge) */ |
1258 # endif |
1392 # endif |
1259 # endif |
1393 # endif |
1260 |
1394 |
1261 # ifndef PNG_IMPEXP |
1395 # if !defined(PNG_IMPEXP) |
1262 # ifdef PNG_BUILD_DLL |
1396 # if defined(PNG_BUILD_DLL) |
1263 # define PNG_IMPEXP __declspec(dllexport) |
1397 # define PNG_IMPEXP __declspec(dllexport) |
1264 # else |
1398 # else |
1265 # define PNG_IMPEXP __declspec(dllimport) |
1399 # define PNG_IMPEXP __declspec(dllimport) |
1266 # endif |
1400 # endif |
1267 # endif |
1401 # endif |
|
1402 # endif /* PNG_IMPEXP */ |
1268 # endif /* PNG_IMPEXP */ |
1403 #else /* !(DLL || non-cygwin WINDOWS) */ |
1269 #else /* !(DLL || non-cygwin WINDOWS) */ |
1404 # if (defined(__IBMC__) || defined(__IBMCPP__)) && defined(__OS2__) |
1270 # if (defined(__IBMC__) || defined(__IBMCPP__)) && defined(__OS2__) |
1405 # ifndef PNGAPI |
1271 # ifndef PNGAPI |
1406 # define PNGAPI _System |
1272 # define PNGAPI _System |
1407 # endif |
1273 # endif |
1408 # else |
1274 # else |
1409 # if 0 /* ... other platforms, with other meanings */ |
1275 # if 0 /* ... other platforms, with other meanings */ |
1410 # endif |
1276 # endif |
1411 # endif |
1277 # endif |
1412 |
1278 |
1413 # if !defined(PNG_IMPEXP) |
1279 # if !defined(PNG_IMPEXP) |
1414 # include <qconfig.h> |
1280 # include <qconfig.h> |
1415 # if defined(QT_VISIBILITY_AVAILABLE) |
1281 # if defined(QT_VISIBILITY_AVAILABLE) |
1428 |
1294 |
1429 #ifdef PNG_BUILDSYMS |
1295 #ifdef PNG_BUILDSYMS |
1430 # ifndef PNG_EXPORT |
1296 # ifndef PNG_EXPORT |
1431 # define PNG_EXPORT(type,symbol) PNG_FUNCTION_EXPORT symbol END |
1297 # define PNG_EXPORT(type,symbol) PNG_FUNCTION_EXPORT symbol END |
1432 # endif |
1298 # endif |
1433 # ifdef PNG_USE_GLOBAL_ARRAYS |
|
1434 # ifndef PNG_EXPORT_VAR |
|
1435 # define PNG_EXPORT_VAR(type) PNG_DATA_EXPORT |
|
1436 # endif |
|
1437 # endif |
|
1438 #endif |
1299 #endif |
1439 |
1300 |
1440 #ifndef PNG_EXPORT |
1301 #ifndef PNG_EXPORT |
1441 # define PNG_EXPORT(type,symbol) PNG_IMPEXP type PNGAPI symbol |
1302 # define PNG_EXPORT(type,symbol) PNG_IMPEXP type PNGAPI symbol |
1442 #endif |
1303 #endif |
1443 |
1304 |
1444 #ifdef PNG_USE_GLOBAL_ARRAYS |
1305 /* Support for compiler specific function attributes. These are used |
1445 # ifndef PNG_EXPORT_VAR |
1306 * so that where compiler support is available incorrect use of API |
1446 # define PNG_EXPORT_VAR(type) extern PNG_IMPEXP type |
1307 * functions in png.h will generate compiler warnings. |
1447 # endif |
1308 * |
1448 #endif |
1309 * Added at libpng-1.2.41. |
1449 |
1310 */ |
1450 /* User may want to use these so they are not in PNG_INTERNAL. Any library |
1311 |
1451 * functions that are passed far data must be model independent. |
1312 #ifndef PNG_NO_PEDANTIC_WARNINGS |
1452 */ |
1313 # ifndef PNG_PEDANTIC_WARNINGS_SUPPORTED |
1453 |
1314 # define PNG_PEDANTIC_WARNINGS_SUPPORTED |
|
1315 # endif |
|
1316 #endif |
|
1317 |
|
1318 #ifdef PNG_PEDANTIC_WARNINGS_SUPPORTED |
|
1319 /* Support for compiler specific function attributes. These are used |
|
1320 * so that where compiler support is available incorrect use of API |
|
1321 * functions in png.h will generate compiler warnings. Added at libpng |
|
1322 * version 1.2.41. |
|
1323 */ |
|
1324 # ifdef __GNUC__ |
|
1325 # ifndef PNG_USE_RESULT |
|
1326 # define PNG_USE_RESULT __attribute__((__warn_unused_result__)) |
|
1327 # endif |
|
1328 # ifndef PNG_NORETURN |
|
1329 # define PNG_NORETURN __attribute__((__noreturn__)) |
|
1330 # endif |
|
1331 # ifndef PNG_ALLOCATED |
|
1332 # define PNG_ALLOCATED __attribute__((__malloc__)) |
|
1333 # endif |
|
1334 |
|
1335 /* This specifically protects structure members that should only be |
|
1336 * accessed from within the library, therefore should be empty during |
|
1337 * a library build. |
|
1338 */ |
|
1339 # ifndef PNG_DEPRECATED |
|
1340 # define PNG_DEPRECATED __attribute__((__deprecated__)) |
|
1341 # endif |
|
1342 # ifndef PNG_DEPSTRUCT |
|
1343 # define PNG_DEPSTRUCT __attribute__((__deprecated__)) |
|
1344 # endif |
|
1345 # ifndef PNG_PRIVATE |
|
1346 # if 0 /* Doesn't work so we use deprecated instead*/ |
|
1347 # define PNG_PRIVATE \ |
|
1348 __attribute__((warning("This function is not exported by libpng."))) |
|
1349 # else |
|
1350 # define PNG_PRIVATE \ |
|
1351 __attribute__((__deprecated__)) |
|
1352 # endif |
|
1353 # endif /* PNG_PRIVATE */ |
|
1354 # endif /* __GNUC__ */ |
|
1355 #endif /* PNG_PEDANTIC_WARNINGS */ |
|
1356 |
|
1357 #ifndef PNG_DEPRECATED |
|
1358 # define PNG_DEPRECATED /* Use of this function is deprecated */ |
|
1359 #endif |
|
1360 #ifndef PNG_USE_RESULT |
|
1361 # define PNG_USE_RESULT /* The result of this function must be checked */ |
|
1362 #endif |
|
1363 #ifndef PNG_NORETURN |
|
1364 # define PNG_NORETURN /* This function does not return */ |
|
1365 #endif |
|
1366 #ifndef PNG_ALLOCATED |
|
1367 # define PNG_ALLOCATED /* The result of the function is new memory */ |
|
1368 #endif |
|
1369 #ifndef PNG_DEPSTRUCT |
|
1370 # define PNG_DEPSTRUCT /* Access to this struct member is deprecated */ |
|
1371 #endif |
|
1372 #ifndef PNG_PRIVATE |
|
1373 # define PNG_PRIVATE /* This is a private libpng function */ |
|
1374 #endif |
|
1375 |
|
1376 /* Users may want to use these so they are not private. Any library |
|
1377 * functions that are passed far data must be model-independent. |
|
1378 */ |
|
1379 |
|
1380 /* memory model/platform independent fns */ |
1454 #ifndef PNG_ABORT |
1381 #ifndef PNG_ABORT |
1455 # define PNG_ABORT() abort() |
1382 # if defined(_WINDOWS_) || defined(_WIN32_WCE) |
1456 #endif |
1383 # define PNG_ABORT() ExitProcess(0) |
1457 |
1384 # else |
1458 #ifdef PNG_SETJMP_SUPPORTED |
1385 # define PNG_ABORT() abort() |
1459 # define png_jmpbuf(png_ptr) ((png_ptr)->jmpbuf) |
1386 # endif |
1460 #else |
1387 #endif |
1461 # define png_jmpbuf(png_ptr) \ |
1388 |
1462 (LIBPNG_WAS_COMPILED_WITH__PNG_SETJMP_NOT_SUPPORTED) |
1389 #ifdef USE_FAR_KEYWORD |
1463 #endif |
1390 /* Use this to make far-to-near assignments */ |
1464 |
|
1465 #if defined(USE_FAR_KEYWORD) /* memory model independent fns */ |
|
1466 /* use this to make far-to-near assignments */ |
|
1467 # define CHECK 1 |
1391 # define CHECK 1 |
1468 # define NOCHECK 0 |
1392 # define NOCHECK 0 |
1469 # define CVT_PTR(ptr) (png_far_to_near(png_ptr,ptr,CHECK)) |
1393 # define CVT_PTR(ptr) (png_far_to_near(png_ptr,ptr,CHECK)) |
1470 # define CVT_PTR_NOCHECK(ptr) (png_far_to_near(png_ptr,ptr,NOCHECK)) |
1394 # define CVT_PTR_NOCHECK(ptr) (png_far_to_near(png_ptr,ptr,NOCHECK)) |
1471 # define png_snprintf _fsnprintf /* Added to v 1.2.19 */ |
1395 # define png_strcpy _fstrcpy |
|
1396 # define png_strncpy _fstrncpy /* Added to v 1.2.6 */ |
1472 # define png_strlen _fstrlen |
1397 # define png_strlen _fstrlen |
1473 # define png_memcmp _fmemcmp /* SJT: added */ |
1398 # define png_memcmp _fmemcmp /* SJT: added */ |
1474 # define png_memcpy _fmemcpy |
1399 # define png_memcpy _fmemcpy |
1475 # define png_memset _fmemset |
1400 # define png_memset _fmemset |
1476 #else /* use the usual functions */ |
1401 # define png_sprintf sprintf |
1477 # define CVT_PTR(ptr) (ptr) |
1402 #else |
1478 # define CVT_PTR_NOCHECK(ptr) (ptr) |
1403 # ifdef _WINDOWS_ /* Favor Windows over C runtime fns */ |
1479 # ifndef PNG_NO_SNPRINTF |
1404 # define CVT_PTR(ptr) (ptr) |
1480 # ifdef _MSC_VER |
1405 # define CVT_PTR_NOCHECK(ptr) (ptr) |
1481 # define png_snprintf _snprintf /* Added to v 1.2.19 */ |
1406 # define png_strcpy lstrcpyA |
1482 # define png_snprintf2 _snprintf |
1407 # define png_strncpy lstrcpynA |
1483 # define png_snprintf6 _snprintf |
1408 # define png_strlen lstrlenA |
|
1409 # define png_memcmp memcmp |
|
1410 # define png_memcpy CopyMemory |
|
1411 # define png_memset memset |
|
1412 # define png_sprintf wsprintfA |
|
1413 # else |
|
1414 # define CVT_PTR(ptr) (ptr) |
|
1415 # define CVT_PTR_NOCHECK(ptr) (ptr) |
|
1416 # define png_strcpy strcpy |
|
1417 # define png_strncpy strncpy /* Added to v 1.2.6 */ |
|
1418 # define png_strlen strlen |
|
1419 # define png_memcmp memcmp /* SJT: added */ |
|
1420 # define png_memcpy memcpy |
|
1421 # define png_memset memset |
|
1422 # define png_sprintf sprintf |
|
1423 # ifndef PNG_NO_SNPRINTF |
|
1424 # ifdef _MSC_VER |
|
1425 # define png_snprintf _snprintf /* Added to v 1.2.19 */ |
|
1426 # define png_snprintf2 _snprintf |
|
1427 # define png_snprintf6 _snprintf |
|
1428 # else |
|
1429 # define png_snprintf snprintf /* Added to v 1.2.19 */ |
|
1430 # define png_snprintf2 snprintf |
|
1431 # define png_snprintf6 snprintf |
|
1432 # endif |
1484 # else |
1433 # else |
1485 # define png_snprintf snprintf /* Added to v 1.2.19 */ |
1434 /* You don't have or don't want to use snprintf(). Caution: Using |
1486 # define png_snprintf2 snprintf |
1435 * sprintf instead of snprintf exposes your application to accidental |
1487 # define png_snprintf6 snprintf |
1436 * or malevolent buffer overflows. If you don't have snprintf() |
1488 # endif |
1437 * as a general rule you should provide one (you can get one from |
|
1438 * Portable OpenSSH). |
|
1439 */ |
|
1440 # define png_snprintf(s1,n,fmt,x1) sprintf(s1,fmt,x1) |
|
1441 # define png_snprintf2(s1,n,fmt,x1,x2) sprintf(s1,fmt,x1,x2) |
|
1442 # define png_snprintf6(s1,n,fmt,x1,x2,x3,x4,x5,x6) \ |
|
1443 sprintf(s1,fmt,x1,x2,x3,x4,x5,x6) |
|
1444 # endif |
|
1445 # endif |
|
1446 #endif |
|
1447 |
|
1448 /* png_alloc_size_t is guaranteed to be no smaller than png_size_t, |
|
1449 * and no smaller than png_uint_32. Casts from png_size_t or png_uint_32 |
|
1450 * to png_alloc_size_t are not necessary; in fact, it is recommended |
|
1451 * not to use them at all so that the compiler can complain when something |
|
1452 * turns out to be problematic. |
|
1453 * Casts in the other direction (from png_alloc_size_t to png_size_t or |
|
1454 * png_uint_32) should be explicitly applied; however, we do not expect |
|
1455 * to encounter practical situations that require such conversions. |
|
1456 */ |
|
1457 #if defined(__TURBOC__) && !defined(__FLAT__) |
|
1458 # define png_mem_alloc farmalloc |
|
1459 # define png_mem_free farfree |
|
1460 typedef unsigned long png_alloc_size_t; |
|
1461 #else |
|
1462 # if defined(_MSC_VER) && defined(MAXSEG_64K) |
|
1463 # define png_mem_alloc(s) halloc(s, 1) |
|
1464 # define png_mem_free hfree |
|
1465 typedef unsigned long png_alloc_size_t; |
1489 # else |
1466 # else |
1490 /* You don't have or don't want to use snprintf(). Caution: Using |
1467 # if defined(_WINDOWS_) && (!defined(INT_MAX) || INT_MAX <= 0x7ffffffeL) |
1491 * sprintf instead of snprintf exposes your application to accidental |
1468 # define png_mem_alloc(s) HeapAlloc(GetProcessHeap(), 0, s) |
1492 * or malevolent buffer overflows. If you don't have snprintf() |
1469 # define png_mem_free(p) HeapFree(GetProcessHeap(), 0, p) |
1493 * as a general rule you should provide one (you can get one from |
1470 typedef DWORD png_alloc_size_t; |
1494 * Portable OpenSSH). */ |
1471 # else |
1495 # define png_snprintf(s1,n,fmt,x1) sprintf(s1,fmt,x1) |
1472 # define png_mem_alloc malloc |
1496 # define png_snprintf2(s1,n,fmt,x1,x2) sprintf(s1,fmt,x1,x2) |
1473 # define png_mem_free free |
1497 # define png_snprintf6(s1,n,fmt,x1,x2,x3,x4,x5,x6) \ |
1474 typedef png_size_t png_alloc_size_t; |
1498 sprintf(s1,fmt,x1,x2,x3,x4,x5,x6) |
1475 # endif |
1499 # endif |
1476 # endif |
1500 # define png_strlen strlen |
1477 #endif |
1501 # define png_memcmp memcmp /* SJT: added */ |
1478 /* End of memory model/platform independent support */ |
1502 # define png_memcpy memcpy |
|
1503 # define png_memset memset |
|
1504 #endif |
|
1505 /* End of memory model independent support */ |
|
1506 |
1479 |
1507 /* Just a little check that someone hasn't tried to define something |
1480 /* Just a little check that someone hasn't tried to define something |
1508 * contradictory. |
1481 * contradictory. |
1509 */ |
1482 */ |
1510 #if (PNG_ZBUF_SIZE > 65536L) && defined(PNG_MAX_MALLOC_64K) |
1483 #if (PNG_ZBUF_SIZE > 65536L) && defined(PNG_MAX_MALLOC_64K) |
1511 # undef PNG_ZBUF_SIZE |
1484 # undef PNG_ZBUF_SIZE |
1512 # define PNG_ZBUF_SIZE 65536L |
1485 # define PNG_ZBUF_SIZE 65536L |
1513 #endif |
1486 #endif |
1514 |
1487 |
|
1488 |
1515 /* Added at libpng-1.2.8 */ |
1489 /* Added at libpng-1.2.8 */ |
1516 #endif /* PNG_VERSION_INFO_ONLY */ |
1490 #endif /* PNG_VERSION_INFO_ONLY */ |
1517 |
1491 |
1518 #endif /* PNGCONF_H */ |
1492 #endif /* PNGCONF_H */ |