Changeset 561 for trunk/src/3rdparty/libpng/pngconf.h
- Timestamp:
- Feb 11, 2010, 11:19:06 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
-
Property svn:mergeinfo
set to (toggle deleted branches)
/branches/vendor/nokia/qt/4.6.1 merged eligible /branches/vendor/nokia/qt/current merged eligible /branches/vendor/trolltech/qt/current 3-149
-
Property svn:mergeinfo
set to (toggle deleted branches)
-
trunk/src/3rdparty/libpng/pngconf.h
r2 r561 2 2 /* pngconf.h - machine configurable file for libpng 3 3 * 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 7 6 * (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger) 8 7 * (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 9 12 */ 10 13 … … 20 23 #define PNG_1_2_X 21 24 22 /* 25 /* 23 26 * PNG_USER_CONFIG has to be defined on the compiler command line. This 24 27 * includes the resource compiler for Windows DLL configurations. … … 40 43 /* 41 44 * Added at libpng-1.2.8 42 * 45 * 43 46 * If you create a private DLL you need to define in "pngusr.h" the followings: 44 47 * #define PNG_USER_PRIVATEBUILD <Describes by whom and why this version of … … 51 54 * e.g. // private DLL "libpng13gx.dll" 52 55 * #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 55 58 * DLL VERSIONINFO structure. 56 59 * - PNG_USER_VERSIONINFO_COMMENTS … … 148 151 * PNG_BUILD_DLL -- (ignored) building the dll 149 152 * (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 151 154 * 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 153 156 * application that links to the static libs. 154 157 * Thus, … … 163 166 * PNG_STATIC 164 167 * (nothing) == PNG_USE_DLL 165 * 168 * 166 169 * 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 168 171 * __declspec(dllexport) / __declspec(dllimport) and friends. Therefore, 169 172 * 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 171 174 * PNG_BUILD_DLL and PNG_STATIC because those change some defaults 172 175 * such as CONSOLE_IO and whether GLOBAL_ARRAYS are allowed. … … 212 215 # define PNG_DLL 213 216 # endif 214 # endif 215 # endif 217 # endif 218 # endif 216 219 # endif 217 220 #endif … … 234 237 /* Console I/O functions are not supported on WindowsCE */ 235 238 # define PNG_NO_CONSOLE_IO 239 /* abort() may not be supported on some/all Windows CE platforms */ 240 # define PNG_ABORT() exit(-1) 236 241 # ifdef PNG_DEBUG 237 242 # undef PNG_DEBUG 238 # endif239 # ifndef PNG_ABORT240 # define PNG_ABORT() exit(3)241 243 # endif 242 244 #endif … … 316 318 /* This is an attempt to force a single setjmp behaviour on Linux. If 317 319 * 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 */ 333 343 334 344 /* include setjmp.h for error handling */ … … 345 355 #endif /* PNG_SETJMP_SUPPORTED */ 346 356 347 #if def BSD357 #if defined(BSD) && !defined(VXWORKS) 348 358 # include <strings.h> 349 359 #else … … 481 491 * libpng-1.2.x, to support old apps that malloc the png_text structure 482 492 * instead of calling png_set_text() and letting libpng malloc it. It 483 * w as turned on by default in libpng-1.3.0.493 * will be turned on by default in libpng-1.4.0. 484 494 */ 485 495 … … 515 525 # define PNG_NO_READ_UNKNOWN_CHUNKS 516 526 # define PNG_NO_WRITE_UNKNOWN_CHUNKS 527 # define PNG_NO_HANDLE_AS_UNKNOWN 517 528 # define PNG_NO_READ_USER_CHUNKS 518 529 # define PNG_NO_READ_iCCP … … 544 555 #endif 545 556 546 #if defined(PNG_READ_SUPPORTED)557 #ifdef PNG_READ_SUPPORTED 547 558 548 559 #if !defined(PNG_READ_TRANSFORMS_NOT_SUPPORTED) && \ … … 632 643 #endif /* PNG_READ_SUPPORTED */ 633 644 634 #if defined(PNG_WRITE_SUPPORTED)645 #ifdef PNG_WRITE_SUPPORTED 635 646 636 647 # if !defined(PNG_WRITE_TRANSFORMS_NOT_SUPPORTED) && \ … … 735 746 #endif 736 747 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 738 749 * and removed from version 1.2.20. The following will be removed 739 750 * from libpng-1.4.0 … … 802 813 #endif 803 814 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 804 820 /* These are currently experimental features, define them if you want */ 805 821 … … 928 944 # define PNG_READ_zTXt_SUPPORTED 929 945 # define PNG_zTXt_SUPPORTED 930 #endif931 #ifndef PNG_NO_READ_UNKNOWN_CHUNKS932 # define PNG_READ_UNKNOWN_CHUNKS_SUPPORTED933 # ifndef PNG_UNKNOWN_CHUNKS_SUPPORTED934 # define PNG_UNKNOWN_CHUNKS_SUPPORTED935 # endif936 # ifndef PNG_NO_HANDLE_AS_UNKNOWN937 # define PNG_HANDLE_AS_UNKNOWN_SUPPORTED938 # endif939 #endif940 #if !defined(PNG_NO_READ_USER_CHUNKS) && \941 defined(PNG_READ_UNKNOWN_CHUNKS_SUPPORTED)942 # define PNG_READ_USER_CHUNKS_SUPPORTED943 # define PNG_USER_CHUNKS_SUPPORTED944 # ifdef PNG_NO_READ_UNKNOWN_CHUNKS945 # undef PNG_NO_READ_UNKNOWN_CHUNKS946 # endif947 # ifdef PNG_NO_HANDLE_AS_UNKNOWN948 # undef PNG_NO_HANDLE_AS_UNKNOWN949 # endif950 946 #endif 951 947 #ifndef PNG_NO_READ_OPT_PLTE … … 960 956 #endif /* PNG_READ_ANCILLARY_CHUNKS_SUPPORTED */ 961 957 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 962 983 #ifdef PNG_WRITE_ANCILLARY_CHUNKS_SUPPORTED 963 984 … … 1069 1090 # ifndef PNG_zTXt_SUPPORTED 1070 1091 # define PNG_zTXt_SUPPORTED 1071 # endif1072 #endif1073 #ifndef PNG_NO_WRITE_UNKNOWN_CHUNKS1074 # define PNG_WRITE_UNKNOWN_CHUNKS_SUPPORTED1075 # ifndef PNG_UNKNOWN_CHUNKS_SUPPORTED1076 # define PNG_UNKNOWN_CHUNKS_SUPPORTED1077 # endif1078 # ifndef PNG_NO_HANDLE_AS_UNKNOWN1079 # ifndef PNG_HANDLE_AS_UNKNOWN_SUPPORTED1080 # define PNG_HANDLE_AS_UNKNOWN_SUPPORTED1081 # endif1082 1092 # endif 1083 1093 #endif … … 1091 1101 1092 1102 #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 */ 1093 1117 1094 1118 /* Turn this off to disable png_read_png() and … … 1127 1151 #ifdef PNG_SIZE_T 1128 1152 typedef PNG_SIZE_T png_size_t; 1129 # define png_sizeof(x) png_convert_size(sizeof 1153 # define png_sizeof(x) png_convert_size(sizeof(x)) 1130 1154 #else 1131 1155 typedef size_t png_size_t; 1132 # define png_sizeof(x) sizeof 1156 # define png_sizeof(x) sizeof(x) 1133 1157 #endif 1134 1158 … … 1237 1261 #if defined(PNG_1_0_X) || defined(PNG_1_2_X) 1238 1262 /* 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 */ 1240 1264 /* libpng typedefs for types in zlib. If zlib changes 1241 1265 * or another compression library is used, then change these. … … 1310 1334 # undef PNG_IMPEXP 1311 1335 # define PNG_IMPEXP 1312 #endif 1336 #endif 1313 1337 1314 1338 /* If you define PNGAPI, e.g., with compiler option "-DPNGAPI=__stdcall", … … 1334 1358 1335 1359 # 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__) 1337 1363 # define PNGAPI __cdecl 1338 1364 # else
Note:
See TracChangeset
for help on using the changeset viewer.