Ignore:
Timestamp:
Feb 11, 2010, 11:19:06 PM (15 years ago)
Author:
Dmitry A. Kuminov
Message:

trunk: Merged in qt 4.6.1 sources.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/src/3rdparty/libpng/pngconf.h

    r2 r561  
    22/* pngconf.h - machine configurable file for libpng
    33 *
    4  * libpng version 1.2.29 - May 8, 2008
    5  * For conditions of distribution and use, see copyright notice in png.h
    6  * Copyright (c) 1998-2008 Glenn Randers-Pehrson
     4 * libpng version 1.2.40 - September 10, 2009
     5 * Copyright (c) 1998-2009 Glenn Randers-Pehrson
    76 * (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
    87 * (Version 0.88 Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc.)
     8 *
     9 * This code is released under the libpng license.
     10 * For conditions of distribution and use, see the disclaimer
     11 * and license in png.h
    912 */
    1013
     
    2023#define PNG_1_2_X
    2124
    22 /* 
     25/*
    2326 * PNG_USER_CONFIG has to be defined on the compiler command line. This
    2427 * includes the resource compiler for Windows DLL configurations.
     
    4043/*
    4144 * Added at libpng-1.2.8
    42  * 
     45 *
    4346 * If you create a private DLL you need to define in "pngusr.h" the followings:
    4447 * #define PNG_USER_PRIVATEBUILD <Describes by whom and why this version of
     
    5154 *  e.g. // private DLL "libpng13gx.dll"
    5255 *       #define PNG_USER_DLLFNAME_POSTFIX "gx"
    53  * 
    54  * The following macros are also at your disposal if you want to complete the 
     56 *
     57 * The following macros are also at your disposal if you want to complete the
    5558 * DLL VERSIONINFO structure.
    5659 * - PNG_USER_VERSIONINFO_COMMENTS
     
    148151 *   PNG_BUILD_DLL -- (ignored) building the dll
    149152 *   (no define)   -- (ignored) building an application, linking to the dll
    150  *   PNG_STATIC    -- (ignored) building the static lib, or building an 
     153 *   PNG_STATIC    -- (ignored) building the static lib, or building an
    151154 *                    application that links to the static lib.
    152  *   ALL_STATIC    -- (ignored) building various static libs, or building an 
     155 *   ALL_STATIC    -- (ignored) building various static libs, or building an
    153156 *                    application that links to the static libs.
    154157 * Thus,
     
    163166 *   PNG_STATIC
    164167 *   (nothing) == PNG_USE_DLL
    165  * 
     168 *
    166169 * CYGWIN (2002-01-20): The preceding is now obsolete. With the advent
    167  *   of auto-import in binutils, we no longer need to worry about 
     170 *   of auto-import in binutils, we no longer need to worry about
    168171 *   __declspec(dllexport) / __declspec(dllimport) and friends.  Therefore,
    169172 *   we don't need to worry about PNG_STATIC or ALL_STATIC when it comes
    170  *   to __declspec() stuff.  However, we DO need to worry about 
     173 *   to __declspec() stuff.  However, we DO need to worry about
    171174 *   PNG_BUILD_DLL and PNG_STATIC because those change some defaults
    172175 *   such as CONSOLE_IO and whether GLOBAL_ARRAYS are allowed.
     
    212215#          define PNG_DLL
    213216#        endif
    214 #      endif 
    215 #    endif 
     217#      endif
     218#    endif
    216219#  endif
    217220#endif
     
    234237   /* Console I/O functions are not supported on WindowsCE */
    235238#  define PNG_NO_CONSOLE_IO
     239   /* abort() may not be supported on some/all Windows CE platforms */
     240#  define PNG_ABORT() exit(-1)
    236241#  ifdef PNG_DEBUG
    237242#    undef PNG_DEBUG
    238 #  endif
    239 #  ifndef PNG_ABORT
    240 #    define PNG_ABORT() exit(3)
    241243#  endif
    242244#endif
     
    316318/* This is an attempt to force a single setjmp behaviour on Linux.  If
    317319 * the X config stuff didn't define _BSD_SOURCE we wouldn't need this.
    318  */
    319 
    320 #  ifdef __linux__
    321 #    ifdef _BSD_SOURCE
    322 #      define PNG_SAVE_BSD_SOURCE
    323 #      undef _BSD_SOURCE
    324 #    endif
    325 #    ifdef _SETJMP_H
    326      /* If you encounter a compiler error here, see the explanation
    327       * near the end of INSTALL.
    328       */
    329          __pngconf.h__ already includes setjmp.h;
    330          __dont__ include it again.;
    331 #    endif
    332 #  endif /* __linux__ */
     320 *
     321 * You can bypass this test if you know that your application uses exactly
     322 * the same setjmp.h that was included when libpng was built.  Only define
     323 * PNG_SKIP_SETJMP_CHECK while building your application, prior to the
     324 * application's '#include "png.h"'. Don't define PNG_SKIP_SETJMP_CHECK
     325 * while building a separate libpng library for general use.
     326 */
     327
     328#  ifndef PNG_SKIP_SETJMP_CHECK
     329#    ifdef __linux__
     330#      ifdef _BSD_SOURCE
     331#        define PNG_SAVE_BSD_SOURCE
     332#        undef _BSD_SOURCE
     333#      endif
     334#      ifdef _SETJMP_H
     335       /* If you encounter a compiler error here, see the explanation
     336        * near the end of INSTALL.
     337        */
     338           __pngconf.h__ in libpng already includes setjmp.h;
     339           __dont__ include it again.;
     340#      endif
     341#    endif /* __linux__ */
     342#  endif /* PNG_SKIP_SETJMP_CHECK */
    333343
    334344   /* include setjmp.h for error handling */
     
    345355#endif /* PNG_SETJMP_SUPPORTED */
    346356
    347 #ifdef BSD
     357#if defined(BSD) && !defined(VXWORKS)
    348358#  include <strings.h>
    349359#else
     
    481491 * libpng-1.2.x, to support old apps that malloc the png_text structure
    482492 * instead of calling png_set_text() and letting libpng malloc it.  It
    483  * was turned on by default in libpng-1.3.0.
     493 * will be turned on by default in libpng-1.4.0.
    484494 */
    485495
     
    515525#  define PNG_NO_READ_UNKNOWN_CHUNKS
    516526#  define PNG_NO_WRITE_UNKNOWN_CHUNKS
     527#  define PNG_NO_HANDLE_AS_UNKNOWN
    517528#  define PNG_NO_READ_USER_CHUNKS
    518529#  define PNG_NO_READ_iCCP
     
    544555#endif
    545556
    546 #if defined(PNG_READ_SUPPORTED)
     557#ifdef PNG_READ_SUPPORTED
    547558
    548559#if !defined(PNG_READ_TRANSFORMS_NOT_SUPPORTED) && \
     
    632643#endif /* PNG_READ_SUPPORTED */
    633644
    634 #if defined(PNG_WRITE_SUPPORTED)
     645#ifdef PNG_WRITE_SUPPORTED
    635646
    636647# if !defined(PNG_WRITE_TRANSFORMS_NOT_SUPPORTED) && \
     
    735746#endif
    736747
    737 /* PNG_ASSEMBLER_CODE was enabled by default in version 1.2.0 
     748/* PNG_ASSEMBLER_CODE was enabled by default in version 1.2.0
    738749 * and removed from version 1.2.20.  The following will be removed
    739750 * from libpng-1.4.0
     
    802813#endif
    803814
     815/* Added at libpng-1.2.34 and 1.4.0 */
     816#ifndef PNG_STRING_NEWLINE
     817#define PNG_STRING_NEWLINE "\n"
     818#endif
     819
    804820/* These are currently experimental features, define them if you want */
    805821
     
    928944#  define PNG_READ_zTXt_SUPPORTED
    929945#  define PNG_zTXt_SUPPORTED
    930 #endif
    931 #ifndef PNG_NO_READ_UNKNOWN_CHUNKS
    932 #  define PNG_READ_UNKNOWN_CHUNKS_SUPPORTED
    933 #  ifndef PNG_UNKNOWN_CHUNKS_SUPPORTED
    934 #    define PNG_UNKNOWN_CHUNKS_SUPPORTED
    935 #  endif
    936 #  ifndef PNG_NO_HANDLE_AS_UNKNOWN
    937 #    define PNG_HANDLE_AS_UNKNOWN_SUPPORTED
    938 #  endif
    939 #endif
    940 #if !defined(PNG_NO_READ_USER_CHUNKS) && \
    941      defined(PNG_READ_UNKNOWN_CHUNKS_SUPPORTED)
    942 #  define PNG_READ_USER_CHUNKS_SUPPORTED
    943 #  define PNG_USER_CHUNKS_SUPPORTED
    944 #  ifdef PNG_NO_READ_UNKNOWN_CHUNKS
    945 #    undef PNG_NO_READ_UNKNOWN_CHUNKS
    946 #  endif
    947 #  ifdef PNG_NO_HANDLE_AS_UNKNOWN
    948 #    undef PNG_NO_HANDLE_AS_UNKNOWN
    949 #  endif
    950946#endif
    951947#ifndef PNG_NO_READ_OPT_PLTE
     
    960956#endif /* PNG_READ_ANCILLARY_CHUNKS_SUPPORTED */
    961957
     958#ifndef PNG_NO_READ_UNKNOWN_CHUNKS
     959#  define PNG_READ_UNKNOWN_CHUNKS_SUPPORTED
     960#  ifndef PNG_UNKNOWN_CHUNKS_SUPPORTED
     961#    define PNG_UNKNOWN_CHUNKS_SUPPORTED
     962#  endif
     963#endif
     964#if !defined(PNG_NO_READ_USER_CHUNKS) && \
     965     defined(PNG_READ_UNKNOWN_CHUNKS_SUPPORTED)
     966#  define PNG_READ_USER_CHUNKS_SUPPORTED
     967#  define PNG_USER_CHUNKS_SUPPORTED
     968#  ifdef PNG_NO_READ_UNKNOWN_CHUNKS
     969#    undef PNG_NO_READ_UNKNOWN_CHUNKS
     970#  endif
     971#  ifdef PNG_NO_HANDLE_AS_UNKNOWN
     972#    undef PNG_NO_HANDLE_AS_UNKNOWN
     973#  endif
     974#endif
     975
     976#ifndef PNG_NO_HANDLE_AS_UNKNOWN
     977#  ifndef PNG_HANDLE_AS_UNKNOWN_SUPPORTED
     978#    define PNG_HANDLE_AS_UNKNOWN_SUPPORTED
     979#  endif
     980#endif
     981
     982#ifdef PNG_WRITE_SUPPORTED
    962983#ifdef PNG_WRITE_ANCILLARY_CHUNKS_SUPPORTED
    963984
     
    10691090#  ifndef PNG_zTXt_SUPPORTED
    10701091#    define PNG_zTXt_SUPPORTED
    1071 #  endif
    1072 #endif
    1073 #ifndef PNG_NO_WRITE_UNKNOWN_CHUNKS
    1074 #  define PNG_WRITE_UNKNOWN_CHUNKS_SUPPORTED
    1075 #  ifndef PNG_UNKNOWN_CHUNKS_SUPPORTED
    1076 #    define PNG_UNKNOWN_CHUNKS_SUPPORTED
    1077 #  endif
    1078 #  ifndef PNG_NO_HANDLE_AS_UNKNOWN
    1079 #     ifndef PNG_HANDLE_AS_UNKNOWN_SUPPORTED
    1080 #       define PNG_HANDLE_AS_UNKNOWN_SUPPORTED
    1081 #     endif
    10821092#  endif
    10831093#endif
     
    10911101
    10921102#endif /* PNG_WRITE_ANCILLARY_CHUNKS_SUPPORTED */
     1103
     1104#ifndef PNG_NO_WRITE_UNKNOWN_CHUNKS
     1105#  define PNG_WRITE_UNKNOWN_CHUNKS_SUPPORTED
     1106#  ifndef PNG_UNKNOWN_CHUNKS_SUPPORTED
     1107#    define PNG_UNKNOWN_CHUNKS_SUPPORTED
     1108#  endif
     1109#endif
     1110
     1111#ifndef PNG_NO_HANDLE_AS_UNKNOWN
     1112#  ifndef PNG_HANDLE_AS_UNKNOWN_SUPPORTED
     1113#    define PNG_HANDLE_AS_UNKNOWN_SUPPORTED
     1114#  endif
     1115#endif
     1116#endif /* PNG_WRITE_SUPPORTED */
    10931117
    10941118/* Turn this off to disable png_read_png() and
     
    11271151#ifdef PNG_SIZE_T
    11281152   typedef PNG_SIZE_T png_size_t;
    1129 #  define png_sizeof(x) png_convert_size(sizeof (x))
     1153#  define png_sizeof(x) png_convert_size(sizeof(x))
    11301154#else
    11311155   typedef size_t png_size_t;
    1132 #  define png_sizeof(x) sizeof (x)
     1156#  define png_sizeof(x) sizeof(x)
    11331157#endif
    11341158
     
    12371261#if defined(PNG_1_0_X) || defined(PNG_1_2_X)
    12381262/* SPC -  Is this stuff deprecated? */
    1239 /* It'll be removed as of libpng-1.3.0 - GR-P */
     1263/* It'll be removed as of libpng-1.4.0 - GR-P */
    12401264/* libpng typedefs for types in zlib. If zlib changes
    12411265 * or another compression library is used, then change these.
     
    13101334#  undef PNG_IMPEXP
    13111335#  define PNG_IMPEXP
    1312 #endif 
     1336#endif
    13131337
    13141338/* If you define PNGAPI, e.g., with compiler option "-DPNGAPI=__stdcall",
     
    13341358
    13351359#  ifndef PNGAPI
    1336 #     if defined(__GNUC__) || (defined (_MSC_VER) && (_MSC_VER >= 800))
     1360#     if (defined(__GNUC__) && defined(__arm__)) || defined (__ARMCC__)
     1361#        define PNGAPI
     1362#     elif defined(__GNUC__) || (defined (_MSC_VER) && (_MSC_VER >= 800))  || defined(__WINSCW__)
    13371363#        define PNGAPI __cdecl
    13381364#     else
Note: See TracChangeset for help on using the changeset viewer.