Glenn Randers-Pehrson | 5b5dcf8 | 2004-07-17 22:45:44 -0500 | [diff] [blame] | 1 | |
Glenn Randers-Pehrson | 0f881d6 | 1998-02-07 10:20:57 -0600 | [diff] [blame] | 2 | /* pngconf.h - machine configurable file for libpng |
Glenn Randers-Pehrson | b6ce43d | 1998-01-01 07:13:13 -0600 | [diff] [blame] | 3 | * |
Glenn Randers-Pehrson | 67ee8ce | 2011-12-22 08:21:00 -0600 | [diff] [blame^] | 4 | * libpng version 1.6.0beta04 - December 22, 2011 |
Glenn Randers-Pehrson | c17c957 | 2010-03-08 21:26:48 -0600 | [diff] [blame] | 5 | * |
Glenn Randers-Pehrson | 64b863c | 2011-01-04 09:57:06 -0600 | [diff] [blame] | 6 | * Copyright (c) 1998-2011 Glenn Randers-Pehrson |
Glenn Randers-Pehrson | d436672 | 2000-06-04 14:29:29 -0500 | [diff] [blame] | 7 | * (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger) |
| 8 | * (Version 0.88 Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc.) |
Glenn Randers-Pehrson | 3e61d79 | 2009-06-24 09:31:28 -0500 | [diff] [blame] | 9 | * |
Glenn Randers-Pehrson | bfbf865 | 2009-06-26 21:46:52 -0500 | [diff] [blame] | 10 | * This code is released under the libpng license. |
Glenn Randers-Pehrson | c332bbc | 2009-06-25 13:43:50 -0500 | [diff] [blame] | 11 | * For conditions of distribution and use, see the disclaimer |
Glenn Randers-Pehrson | 037023b | 2009-06-24 10:27:36 -0500 | [diff] [blame] | 12 | * and license in png.h |
Glenn Randers-Pehrson | 3e61d79 | 2009-06-24 09:31:28 -0500 | [diff] [blame] | 13 | * |
Glenn Randers-Pehrson | b6ce43d | 1998-01-01 07:13:13 -0600 | [diff] [blame] | 14 | */ |
Guy Schalnat | 51f0eb4 | 1995-09-26 05:22:39 -0500 | [diff] [blame] | 15 | |
| 16 | /* Any machine specific code is near the front of this file, so if you |
Glenn Randers-Pehrson | b6ce43d | 1998-01-01 07:13:13 -0600 | [diff] [blame] | 17 | * are configuring libpng for a machine, you may want to read the section |
| 18 | * starting here down to where it starts to typedef png_color, png_text, |
| 19 | * and png_info. |
| 20 | */ |
Guy Schalnat | 51f0eb4 | 1995-09-26 05:22:39 -0500 | [diff] [blame] | 21 | |
| 22 | #ifndef PNGCONF_H |
| 23 | #define PNGCONF_H |
| 24 | |
John Bowler | baeb6d1 | 2011-11-26 18:21:02 -0600 | [diff] [blame] | 25 | #ifndef PNG_BUILDING_SYMBOL_TABLE /* else includes may cause problems */ |
Glenn Randers-Pehrson | 6bc53be | 2006-06-16 07:52:03 -0500 | [diff] [blame] | 26 | |
John Bowler | baeb6d1 | 2011-11-26 18:21:02 -0600 | [diff] [blame] | 27 | /* From libpng 1.6.0 libpng requires an ANSI X3.159-1989 ("ISOC90") compliant C |
| 28 | * compiler for correct compilation. The following header files are required by |
| 29 | * the standard. If your compiler doesn't provide these header files, or they |
| 30 | * do not match the standard, you will need to provide/improve them. |
Glenn Randers-Pehrson | 31aee0d | 2010-07-29 17:39:14 -0500 | [diff] [blame] | 31 | */ |
John Bowler | baeb6d1 | 2011-11-26 18:21:02 -0600 | [diff] [blame] | 32 | #include <limits.h> |
| 33 | #include <stddef.h> |
Glenn Randers-Pehrson | 31aee0d | 2010-07-29 17:39:14 -0500 | [diff] [blame] | 34 | |
Glenn Randers-Pehrson | 4c7e820 | 2011-11-26 19:00:01 -0600 | [diff] [blame] | 35 | /* Library header files. These header files are all defined by ISOC90; libpng |
| 36 | * expects conformant implementations, however, an ISOC90 conformant system need |
John Bowler | baeb6d1 | 2011-11-26 18:21:02 -0600 | [diff] [blame] | 37 | * not provide these header files if the functionality cannot be implemented. |
| 38 | * In this case it will be necessary to disable the relevant parts of libpng in |
| 39 | * the build of pnglibconf.h. |
| 40 | * |
| 41 | * Prior to 1.6.0 string.h was included here; the API changes in 1.6.0 to not |
| 42 | * include this unnecessary header file. |
Glenn Randers-Pehrson | 31aee0d | 2010-07-29 17:39:14 -0500 | [diff] [blame] | 43 | */ |
John Bowler | baeb6d1 | 2011-11-26 18:21:02 -0600 | [diff] [blame] | 44 | |
| 45 | #ifdef PNG_STDIO_SUPPORTED |
| 46 | /* Required for the definition of FILE: */ |
| 47 | # include <stdio.h> |
Glenn Randers-Pehrson | 31aee0d | 2010-07-29 17:39:14 -0500 | [diff] [blame] | 48 | #endif |
| 49 | |
John Bowler | baeb6d1 | 2011-11-26 18:21:02 -0600 | [diff] [blame] | 50 | #ifdef PNG_SETJMP_SUPPORTED |
| 51 | /* Required for the definition of jmp_buf and the declaration of longjmp: */ |
| 52 | # include <setjmp.h> |
| 53 | #endif |
| 54 | |
| 55 | #ifdef PNG_CONVERT_tIME_SUPPORTED |
| 56 | /* Required for struct tm: */ |
| 57 | # include <time.h> |
| 58 | #endif |
| 59 | |
| 60 | #endif /* PNG_BUILDING_SYMBOL_TABLE */ |
| 61 | |
| 62 | /* Prior to 1.6.0 it was possible to turn off 'const' in declarations using |
| 63 | * PNG_NO_CONST; this is no longer supported except for data declarations which |
| 64 | * apparently still cause problems in 2011 on some compilers. |
| 65 | */ |
| 66 | #define PNG_CONST const /* backward compatibility only */ |
| 67 | |
Glenn Randers-Pehrson | 862cb20 | 2010-04-16 22:12:51 -0500 | [diff] [blame] | 68 | /* This controls optimization of the reading of 16 and 32 bit values |
| 69 | * from PNG files. It can be set on a per-app-file basis - it |
| 70 | * just changes whether a macro is used to the function is called. |
Glenn Randers-Pehrson | c3d73f4 | 2010-04-24 09:18:57 -0500 | [diff] [blame] | 71 | * The library builder sets the default, if read functions are not |
| 72 | * built into the library the macro implementation is forced on. |
Glenn Randers-Pehrson | 862cb20 | 2010-04-16 22:12:51 -0500 | [diff] [blame] | 73 | */ |
Glenn Randers-Pehrson | c3d73f4 | 2010-04-24 09:18:57 -0500 | [diff] [blame] | 74 | #ifndef PNG_READ_INT_FUNCTIONS_SUPPORTED |
| 75 | # define PNG_USE_READ_MACROS |
| 76 | #endif |
Glenn Randers-Pehrson | 862cb20 | 2010-04-16 22:12:51 -0500 | [diff] [blame] | 77 | #if !defined(PNG_NO_USE_READ_MACROS) && !defined(PNG_USE_READ_MACROS) |
| 78 | # if PNG_DEFAULT_READ_MACROS |
| 79 | # define PNG_USE_READ_MACROS |
| 80 | # endif |
| 81 | #endif |
| 82 | |
Glenn Randers-Pehrson | 8fc3604 | 2010-04-17 10:17:46 -0500 | [diff] [blame] | 83 | /* COMPILER SPECIFIC OPTIONS. |
Glenn Randers-Pehrson | 7824a70 | 2009-06-13 10:05:05 -0500 | [diff] [blame] | 84 | * |
Glenn Randers-Pehrson | 862cb20 | 2010-04-16 22:12:51 -0500 | [diff] [blame] | 85 | * These options are provided so that a variety of difficult compilers |
| 86 | * can be used. Some are fixed at build time (e.g. PNG_API_RULE |
| 87 | * below) but still have compiler specific implementations, others |
| 88 | * may be changed on a per-file basis when compiling against libpng. |
Glenn Randers-Pehrson | 86dc981 | 2006-05-10 07:27:44 -0500 | [diff] [blame] | 89 | */ |
Glenn Randers-Pehrson | a451725 | 2010-12-06 08:54:55 -0600 | [diff] [blame] | 90 | |
John Bowler | baeb6d1 | 2011-11-26 18:21:02 -0600 | [diff] [blame] | 91 | /* The PNGARG macro was used in versions of libpng prior to 1.6.0 to protect |
| 92 | * against legacy (pre ISOC90) compilers that did not understand function |
| 93 | * prototypes. It is not required for modern C compilers. |
Glenn Randers-Pehrson | a4d54bd | 2000-07-14 08:15:12 -0500 | [diff] [blame] | 94 | */ |
Glenn Randers-Pehrson | d7da8bb | 2010-03-13 20:30:10 -0600 | [diff] [blame] | 95 | #ifndef PNGARG |
John Bowler | baeb6d1 | 2011-11-26 18:21:02 -0600 | [diff] [blame] | 96 | # define PNGARG(arglist) arglist |
| 97 | #endif |
Glenn Randers-Pehrson | d7da8bb | 2010-03-13 20:30:10 -0600 | [diff] [blame] | 98 | |
| 99 | /* Function calling conventions. |
| 100 | * ============================= |
| 101 | * Normally it is not necessary to specify to the compiler how to call |
| 102 | * a function - it just does it - however on x86 systems derived from |
| 103 | * Microsoft and Borland C compilers ('IBM PC', 'DOS', 'Windows' systems |
| 104 | * and some others) there are multiple ways to call a function and the |
| 105 | * default can be changed on the compiler command line. For this reason |
Glenn Randers-Pehrson | 9ee577c | 2010-04-24 09:40:44 -0500 | [diff] [blame] | 106 | * libpng specifies the calling convention of every exported function and |
| 107 | * every function called via a user supplied function pointer. This is |
| 108 | * done in this file by defining the following macros: |
Glenn Randers-Pehrson | d7da8bb | 2010-03-13 20:30:10 -0600 | [diff] [blame] | 109 | * |
| 110 | * PNGAPI Calling convention for exported functions. |
| 111 | * PNGCBAPI Calling convention for user provided (callback) functions. |
| 112 | * PNGCAPI Calling convention used by the ANSI-C library (required |
| 113 | * for longjmp callbacks and sometimes used internally to |
| 114 | * specify the calling convention for zlib). |
| 115 | * |
Glenn Randers-Pehrson | 9ee577c | 2010-04-24 09:40:44 -0500 | [diff] [blame] | 116 | * These macros should never be overridden. If it is necessary to |
| 117 | * change calling convention in a private build this can be done |
| 118 | * by setting PNG_API_RULE (which defaults to 0) to one of the values |
| 119 | * below to select the correct 'API' variants. |
Glenn Randers-Pehrson | d7da8bb | 2010-03-13 20:30:10 -0600 | [diff] [blame] | 120 | * |
Glenn Randers-Pehrson | 9ee577c | 2010-04-24 09:40:44 -0500 | [diff] [blame] | 121 | * PNG_API_RULE=0 Use PNGCAPI - the 'C' calling convention - throughout. |
| 122 | * This is correct in every known environment. |
| 123 | * PNG_API_RULE=1 Use the operating system convention for PNGAPI and |
Glenn Randers-Pehrson | d7da8bb | 2010-03-13 20:30:10 -0600 | [diff] [blame] | 124 | * the 'C' calling convention (from PNGCAPI) for |
Glenn Randers-Pehrson | 9ee577c | 2010-04-24 09:40:44 -0500 | [diff] [blame] | 125 | * callbacks (PNGCBAPI). This is no longer required |
| 126 | * in any known environment - if it has to be used |
| 127 | * please post an explanation of the problem to the |
| 128 | * libpng mailing list. |
Glenn Randers-Pehrson | d7da8bb | 2010-03-13 20:30:10 -0600 | [diff] [blame] | 129 | * |
| 130 | * These cases only differ if the operating system does not use the C |
| 131 | * calling convention, at present this just means the above cases |
| 132 | * (x86 DOS/Windows sytems) and, even then, this does not apply to |
| 133 | * Cygwin running on those systems. |
Glenn Randers-Pehrson | 862cb20 | 2010-04-16 22:12:51 -0500 | [diff] [blame] | 134 | * |
Glenn Randers-Pehrson | 98b4f00 | 2010-04-16 22:30:26 -0500 | [diff] [blame] | 135 | * Note that the value must be defined in pnglibconf.h so that what |
Glenn Randers-Pehrson | 862cb20 | 2010-04-16 22:12:51 -0500 | [diff] [blame] | 136 | * the application uses to call the library matches the conventions |
| 137 | * set when building the library. |
Glenn Randers-Pehrson | d7da8bb | 2010-03-13 20:30:10 -0600 | [diff] [blame] | 138 | */ |
Glenn Randers-Pehrson | d7da8bb | 2010-03-13 20:30:10 -0600 | [diff] [blame] | 139 | |
| 140 | /* Symbol export |
| 141 | * ============= |
| 142 | * When building a shared library it is almost always necessary to tell |
| 143 | * the compiler which symbols to export. The png.h macro 'PNG_EXPORT' |
| 144 | * is used to mark the symbols. On some systems these symbols can be |
| 145 | * extracted at link time and need no special processing by the compiler, |
| 146 | * on other systems the symbols are flagged by the compiler and just |
| 147 | * the declaration requires a special tag applied (unfortunately) in a |
| 148 | * compiler dependent way. Some systems can do either. |
| 149 | * |
| 150 | * A small number of older systems also require a symbol from a DLL to |
| 151 | * be flagged to the program that calls it. This is a problem because |
| 152 | * we do not know in the header file included by application code that |
| 153 | * the symbol will come from a shared library, as opposed to a statically |
| 154 | * linked one. For this reason the application must tell us by setting |
| 155 | * the magic flag PNG_USE_DLL to turn on the special processing before |
| 156 | * it includes png.h. |
Glenn Randers-Pehrson | 821b710 | 2010-06-24 16:16:32 -0500 | [diff] [blame] | 157 | * |
Glenn Randers-Pehrson | d00bbb2 | 2010-03-14 09:15:49 -0500 | [diff] [blame] | 158 | * Four additional macros are used to make this happen: |
Glenn Randers-Pehrson | d7da8bb | 2010-03-13 20:30:10 -0600 | [diff] [blame] | 159 | * |
| 160 | * PNG_IMPEXP The magic (if any) to cause a symbol to be exported from |
| 161 | * the build or imported if PNG_USE_DLL is set - compiler |
| 162 | * and system specific. |
| 163 | * |
| 164 | * PNG_EXPORT_TYPE(type) A macro that pre or appends PNG_IMPEXP to |
| 165 | * 'type', compiler specific. |
Glenn Randers-Pehrson | d00bbb2 | 2010-03-14 09:15:49 -0500 | [diff] [blame] | 166 | * |
| 167 | * PNG_DLL_EXPORT Set to the magic to use during a libpng build to |
John Bowler | 7b97965 | 2011-08-16 22:36:43 -0500 | [diff] [blame] | 168 | * make a symbol exported from the DLL. Not used in the |
| 169 | * public header files; see pngpriv.h for how it is used |
| 170 | * in the libpng build. |
Glenn Randers-Pehrson | d00bbb2 | 2010-03-14 09:15:49 -0500 | [diff] [blame] | 171 | * |
| 172 | * PNG_DLL_IMPORT Set to the magic to force the libpng symbols to come |
| 173 | * from a DLL - used to define PNG_IMPEXP when |
| 174 | * PNG_USE_DLL is set. |
Glenn Randers-Pehrson | d7da8bb | 2010-03-13 20:30:10 -0600 | [diff] [blame] | 175 | */ |
| 176 | |
| 177 | /* System specific discovery. |
| 178 | * ========================== |
| 179 | * This code is used at build time to find PNG_IMPEXP, the API settings |
| 180 | * and PNG_EXPORT_TYPE(), it may also set a macro to indicate the DLL |
Glenn Randers-Pehrson | 9ee577c | 2010-04-24 09:40:44 -0500 | [diff] [blame] | 181 | * import processing is possible. On Windows/x86 systems it also sets |
| 182 | * compiler-specific macros to the values required to change the calling |
| 183 | * conventions of the various functions. |
Glenn Randers-Pehrson | d7da8bb | 2010-03-13 20:30:10 -0600 | [diff] [blame] | 184 | */ |
Glenn Randers-Pehrson | 9ee577c | 2010-04-24 09:40:44 -0500 | [diff] [blame] | 185 | #if ( defined(_Windows) || defined(_WINDOWS) || defined(WIN32) ||\ |
| 186 | defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) ) &&\ |
| 187 | ( defined(_X86_) || defined(_X64_) || defined(_M_IX86) ||\ |
| 188 | defined(_M_X64) || defined(_M_IA64) ) |
Glenn Randers-Pehrson | 31aee0d | 2010-07-29 17:39:14 -0500 | [diff] [blame] | 189 | /* Windows system (DOS doesn't support DLLs) running on x86/x64. Includes |
| 190 | * builds under Cygwin or MinGW. Also includes Watcom builds but these need |
| 191 | * special treatment because they are not compatible with GCC or Visual C |
| 192 | * because of different calling conventions. |
Glenn Randers-Pehrson | d00bbb2 | 2010-03-14 09:15:49 -0500 | [diff] [blame] | 193 | */ |
Glenn Randers-Pehrson | 31aee0d | 2010-07-29 17:39:14 -0500 | [diff] [blame] | 194 | # if PNG_API_RULE == 2 |
| 195 | /* If this line results in an error, either because __watcall is not |
| 196 | * understood or because of a redefine just below you cannot use *this* |
| 197 | * build of the library with the compiler you are using. *This* build was |
| 198 | * build using Watcom and applications must also be built using Watcom! |
| 199 | */ |
| 200 | # define PNGCAPI __watcall |
| 201 | # endif |
| 202 | |
Glenn Randers-Pehrson | 9ee577c | 2010-04-24 09:40:44 -0500 | [diff] [blame] | 203 | # if defined(__GNUC__) || (defined (_MSC_VER) && (_MSC_VER >= 800)) |
| 204 | # define PNGCAPI __cdecl |
| 205 | # if PNG_API_RULE == 1 |
| 206 | # define PNGAPI __stdcall |
| 207 | # endif |
| 208 | # else |
| 209 | /* An older compiler, or one not detected (erroneously) above, |
| 210 | * if necessary override on the command line to get the correct |
| 211 | * variants for the compiler. |
Glenn Randers-Pehrson | d7da8bb | 2010-03-13 20:30:10 -0600 | [diff] [blame] | 212 | */ |
Glenn Randers-Pehrson | 9ee577c | 2010-04-24 09:40:44 -0500 | [diff] [blame] | 213 | # ifndef PNGCAPI |
| 214 | # define PNGCAPI _cdecl |
| 215 | # endif |
| 216 | # if PNG_API_RULE == 1 && !defined(PNGAPI) |
| 217 | # define PNGAPI _stdcall |
| 218 | # endif |
| 219 | # endif /* compiler/api */ |
| 220 | /* NOTE: PNGCBAPI always defaults to PNGCAPI. */ |
Glenn Randers-Pehrson | d7da8bb | 2010-03-13 20:30:10 -0600 | [diff] [blame] | 221 | |
Glenn Randers-Pehrson | 9ee577c | 2010-04-24 09:40:44 -0500 | [diff] [blame] | 222 | # if defined(PNGAPI) && !defined(PNG_USER_PRIVATEBUILD) |
John Bowler | baeb6d1 | 2011-11-26 18:21:02 -0600 | [diff] [blame] | 223 | # error "PNG_USER_PRIVATEBUILD must be defined if PNGAPI is changed" |
Glenn Randers-Pehrson | 9ee577c | 2010-04-24 09:40:44 -0500 | [diff] [blame] | 224 | # endif |
Glenn Randers-Pehrson | d7da8bb | 2010-03-13 20:30:10 -0600 | [diff] [blame] | 225 | |
Glenn Randers-Pehrson | 9ee577c | 2010-04-24 09:40:44 -0500 | [diff] [blame] | 226 | # if (defined(_MSC_VER) && _MSC_VER < 800) ||\ |
| 227 | (defined(__BORLANDC__) && __BORLANDC__ < 0x500) |
| 228 | /* older Borland and MSC |
| 229 | * compilers used '__export' and required this to be after |
| 230 | * the type. |
| 231 | */ |
| 232 | # ifndef PNG_EXPORT_TYPE |
| 233 | # define PNG_EXPORT_TYPE(type) type PNG_IMPEXP |
| 234 | # endif |
| 235 | # define PNG_DLL_EXPORT __export |
| 236 | # else /* newer compiler */ |
| 237 | # define PNG_DLL_EXPORT __declspec(dllexport) |
| 238 | # ifndef PNG_DLL_IMPORT |
| 239 | # define PNG_DLL_IMPORT __declspec(dllimport) |
| 240 | # endif |
| 241 | # endif /* compiler */ |
| 242 | |
| 243 | #else /* !Windows/x86 */ |
| 244 | # if (defined(__IBMC__) || defined(__IBMCPP__)) && defined(__OS2__) |
| 245 | # define PNGAPI _System |
| 246 | # else /* !Windows/x86 && !OS/2 */ |
| 247 | /* Use the defaults, or define PNG*API on the command line (but |
| 248 | * this will have to be done for every compile!) |
| 249 | */ |
| 250 | # endif /* other system, !OS/2 */ |
| 251 | #endif /* !Windows/x86 */ |
Glenn Randers-Pehrson | d7da8bb | 2010-03-13 20:30:10 -0600 | [diff] [blame] | 252 | |
| 253 | /* Now do all the defaulting . */ |
| 254 | #ifndef PNGCAPI |
| 255 | # define PNGCAPI |
| 256 | #endif |
| 257 | #ifndef PNGCBAPI |
| 258 | # define PNGCBAPI PNGCAPI |
| 259 | #endif |
| 260 | #ifndef PNGAPI |
| 261 | # define PNGAPI PNGCAPI |
| 262 | #endif |
| 263 | |
John Bowler | 7b97965 | 2011-08-16 22:36:43 -0500 | [diff] [blame] | 264 | /* PNG_IMPEXP may be set on the compilation system command line or (if not set) |
| 265 | * then in an internal header file when building the library, otherwise (when |
| 266 | * using the library) it is set here. |
Glenn Randers-Pehrson | d00bbb2 | 2010-03-14 09:15:49 -0500 | [diff] [blame] | 267 | */ |
Glenn Randers-Pehrson | d7da8bb | 2010-03-13 20:30:10 -0600 | [diff] [blame] | 268 | #ifndef PNG_IMPEXP |
John Bowler | 7b97965 | 2011-08-16 22:36:43 -0500 | [diff] [blame] | 269 | # if defined(PNG_USE_DLL) && defined(PNG_DLL_IMPORT) |
| 270 | /* This forces use of a DLL, disallowing static linking */ |
| 271 | # define PNG_IMPEXP PNG_DLL_IMPORT |
Glenn Randers-Pehrson | d00bbb2 | 2010-03-14 09:15:49 -0500 | [diff] [blame] | 272 | # endif |
| 273 | |
| 274 | # ifndef PNG_IMPEXP |
| 275 | # define PNG_IMPEXP |
| 276 | # endif |
Glenn Randers-Pehrson | d7da8bb | 2010-03-13 20:30:10 -0600 | [diff] [blame] | 277 | #endif |
Glenn Randers-Pehrson | d00bbb2 | 2010-03-14 09:15:49 -0500 | [diff] [blame] | 278 | |
John Bowler | 9c69360 | 2011-02-12 08:58:21 -0600 | [diff] [blame] | 279 | /* In 1.5.2 the definition of PNG_FUNCTION has been changed to always treat |
| 280 | * 'attributes' as a storage class - the attributes go at the start of the |
| 281 | * function definition, and attributes are always appended regardless of the |
| 282 | * compiler. This considerably simplifies these macros but may cause problems |
| 283 | * if any compilers both need function attributes and fail to handle them as |
| 284 | * a storage class (this is unlikely.) |
Glenn Randers-Pehrson | 77396b6 | 2010-08-02 08:00:10 -0500 | [diff] [blame] | 285 | */ |
| 286 | #ifndef PNG_FUNCTION |
John Bowler | 9c69360 | 2011-02-12 08:58:21 -0600 | [diff] [blame] | 287 | # define PNG_FUNCTION(type, name, args, attributes) attributes type name args |
Glenn Randers-Pehrson | 77396b6 | 2010-08-02 08:00:10 -0500 | [diff] [blame] | 288 | #endif |
| 289 | |
Glenn Randers-Pehrson | d7da8bb | 2010-03-13 20:30:10 -0600 | [diff] [blame] | 290 | #ifndef PNG_EXPORT_TYPE |
| 291 | # define PNG_EXPORT_TYPE(type) PNG_IMPEXP type |
| 292 | #endif |
Glenn Randers-Pehrson | 77396b6 | 2010-08-02 08:00:10 -0500 | [diff] [blame] | 293 | |
Glenn Randers-Pehrson | 77396b6 | 2010-08-02 08:00:10 -0500 | [diff] [blame] | 294 | /* The ordinal value is only relevant when preprocessing png.h for symbol |
Glenn Randers-Pehrson | a451725 | 2010-12-06 08:54:55 -0600 | [diff] [blame] | 295 | * table entries, so we discard it here. See the .dfn files in the |
| 296 | * scripts directory. |
Glenn Randers-Pehrson | 77396b6 | 2010-08-02 08:00:10 -0500 | [diff] [blame] | 297 | */ |
Glenn Randers-Pehrson | 23d3970 | 2010-12-06 18:28:02 -0600 | [diff] [blame] | 298 | #ifndef PNG_EXPORTA |
Glenn Randers-Pehrson | d32a671 | 2011-03-06 16:49:10 -0600 | [diff] [blame] | 299 | |
Glenn Randers-Pehrson | 23d3970 | 2010-12-06 18:28:02 -0600 | [diff] [blame] | 300 | # define PNG_EXPORTA(ordinal, type, name, args, attributes)\ |
Glenn Randers-Pehrson | d32a671 | 2011-03-06 16:49:10 -0600 | [diff] [blame] | 301 | PNG_FUNCTION(PNG_EXPORT_TYPE(type),(PNGAPI name),PNGARG(args), \ |
| 302 | extern attributes) |
Glenn Randers-Pehrson | d7da8bb | 2010-03-13 20:30:10 -0600 | [diff] [blame] | 303 | #endif |
| 304 | |
John Bowler | 9c69360 | 2011-02-12 08:58:21 -0600 | [diff] [blame] | 305 | /* ANSI-C (C90) does not permit a macro to be invoked with an empty argument, |
| 306 | * so make something non-empty to satisfy the requirement: |
| 307 | */ |
| 308 | #define PNG_EMPTY /*empty list*/ |
| 309 | |
Glenn Randers-Pehrson | 234e543 | 2010-12-06 20:18:51 -0600 | [diff] [blame] | 310 | #define PNG_EXPORT(ordinal, type, name, args)\ |
John Bowler | 9c69360 | 2011-02-12 08:58:21 -0600 | [diff] [blame] | 311 | PNG_EXPORTA(ordinal, type, name, args, PNG_EMPTY) |
Glenn Randers-Pehrson | 234e543 | 2010-12-06 20:18:51 -0600 | [diff] [blame] | 312 | |
Glenn Randers-Pehrson | d7da8bb | 2010-03-13 20:30:10 -0600 | [diff] [blame] | 313 | /* Use PNG_REMOVED to comment out a removed interface. */ |
| 314 | #ifndef PNG_REMOVED |
Glenn Randers-Pehrson | 23d3970 | 2010-12-06 18:28:02 -0600 | [diff] [blame] | 315 | # define PNG_REMOVED(ordinal, type, name, args, attributes) |
Glenn Randers-Pehrson | d7da8bb | 2010-03-13 20:30:10 -0600 | [diff] [blame] | 316 | #endif |
| 317 | |
| 318 | #ifndef PNG_CALLBACK |
John Bowler | 9c69360 | 2011-02-12 08:58:21 -0600 | [diff] [blame] | 319 | # define PNG_CALLBACK(type, name, args) type (PNGCBAPI name) PNGARG(args) |
Glenn Randers-Pehrson | d7da8bb | 2010-03-13 20:30:10 -0600 | [diff] [blame] | 320 | #endif |
| 321 | |
| 322 | /* Support for compiler specific function attributes. These are used |
| 323 | * so that where compiler support is available incorrect use of API |
| 324 | * functions in png.h will generate compiler warnings. |
| 325 | * |
| 326 | * Added at libpng-1.2.41. |
| 327 | */ |
| 328 | |
| 329 | #ifndef PNG_NO_PEDANTIC_WARNINGS |
Glenn Randers-Pehrson | c44253f | 2010-03-13 20:58:39 -0600 | [diff] [blame] | 330 | # ifndef PNG_PEDANTIC_WARNINGS_SUPPORTED |
| 331 | # define PNG_PEDANTIC_WARNINGS_SUPPORTED |
| 332 | # endif |
Glenn Randers-Pehrson | d7da8bb | 2010-03-13 20:30:10 -0600 | [diff] [blame] | 333 | #endif |
| 334 | |
| 335 | #ifdef PNG_PEDANTIC_WARNINGS_SUPPORTED |
Glenn Randers-Pehrson | 882340c | 2010-03-13 21:19:51 -0600 | [diff] [blame] | 336 | /* Support for compiler specific function attributes. These are used |
| 337 | * so that where compiler support is available incorrect use of API |
| 338 | * functions in png.h will generate compiler warnings. Added at libpng |
| 339 | * version 1.2.41. |
| 340 | */ |
Glenn Randers-Pehrson | c83d421 | 2011-02-12 08:54:42 -0600 | [diff] [blame] | 341 | # if defined(__GNUC__) |
Glenn Randers-Pehrson | d7da8bb | 2010-03-13 20:30:10 -0600 | [diff] [blame] | 342 | # ifndef PNG_USE_RESULT |
| 343 | # define PNG_USE_RESULT __attribute__((__warn_unused_result__)) |
| 344 | # endif |
| 345 | # ifndef PNG_NORETURN |
| 346 | # define PNG_NORETURN __attribute__((__noreturn__)) |
| 347 | # endif |
| 348 | # ifndef PNG_ALLOCATED |
| 349 | # define PNG_ALLOCATED __attribute__((__malloc__)) |
| 350 | # endif |
John Bowler | 7b97965 | 2011-08-16 22:36:43 -0500 | [diff] [blame] | 351 | # ifndef PNG_DEPRECATED |
| 352 | # define PNG_DEPRECATED __attribute__((__deprecated__)) |
| 353 | # endif |
| 354 | # ifndef PNG_PRIVATE |
| 355 | # if 0 /* Doesn't work so we use deprecated instead*/ |
| 356 | # define PNG_PRIVATE \ |
| 357 | __attribute__((warning("This function is not exported by libpng."))) |
| 358 | # else |
| 359 | # define PNG_PRIVATE \ |
| 360 | __attribute__((__deprecated__)) |
Glenn Randers-Pehrson | d7da8bb | 2010-03-13 20:30:10 -0600 | [diff] [blame] | 361 | # endif |
John Bowler | 7b97965 | 2011-08-16 22:36:43 -0500 | [diff] [blame] | 362 | # endif |
Glenn Randers-Pehrson | d7da8bb | 2010-03-13 20:30:10 -0600 | [diff] [blame] | 363 | # endif /* __GNUC__ */ |
Glenn Randers-Pehrson | d32a671 | 2011-03-06 16:49:10 -0600 | [diff] [blame] | 364 | |
| 365 | # if defined(_MSC_VER) && (_MSC_VER >= 1300) |
Glenn Randers-Pehrson | 77396b6 | 2010-08-02 08:00:10 -0500 | [diff] [blame] | 366 | # ifndef PNG_USE_RESULT |
Glenn Randers-Pehrson | c36bb79 | 2011-02-12 09:49:07 -0600 | [diff] [blame] | 367 | # define PNG_USE_RESULT /* not supported */ |
Glenn Randers-Pehrson | 77396b6 | 2010-08-02 08:00:10 -0500 | [diff] [blame] | 368 | # endif |
| 369 | # ifndef PNG_NORETURN |
| 370 | # define PNG_NORETURN __declspec(noreturn) |
| 371 | # endif |
Glenn Randers-Pehrson | 77396b6 | 2010-08-02 08:00:10 -0500 | [diff] [blame] | 372 | # ifndef PNG_ALLOCATED |
Glenn Randers-Pehrson | 1f0eaa0 | 2011-12-01 21:45:34 -0600 | [diff] [blame] | 373 | # if (_MSC_VER >= 1400) |
Glenn Randers-Pehrson | 4fca255 | 2011-06-27 12:01:01 -0500 | [diff] [blame] | 374 | # define PNG_ALLOCATED __declspec(restrict) |
| 375 | # endif |
Glenn Randers-Pehrson | 77396b6 | 2010-08-02 08:00:10 -0500 | [diff] [blame] | 376 | # endif |
John Bowler | 7b97965 | 2011-08-16 22:36:43 -0500 | [diff] [blame] | 377 | # ifndef PNG_DEPRECATED |
| 378 | # define PNG_DEPRECATED __declspec(deprecated) |
| 379 | # endif |
| 380 | # ifndef PNG_PRIVATE |
| 381 | # define PNG_PRIVATE __declspec(deprecated) |
| 382 | # endif |
John Bowler | 9c69360 | 2011-02-12 08:58:21 -0600 | [diff] [blame] | 383 | # endif /* _MSC_VER */ |
Glenn Randers-Pehrson | d7da8bb | 2010-03-13 20:30:10 -0600 | [diff] [blame] | 384 | #endif /* PNG_PEDANTIC_WARNINGS */ |
| 385 | |
| 386 | #ifndef PNG_DEPRECATED |
| 387 | # define PNG_DEPRECATED /* Use of this function is deprecated */ |
| 388 | #endif |
| 389 | #ifndef PNG_USE_RESULT |
| 390 | # define PNG_USE_RESULT /* The result of this function must be checked */ |
| 391 | #endif |
| 392 | #ifndef PNG_NORETURN |
| 393 | # define PNG_NORETURN /* This function does not return */ |
| 394 | #endif |
| 395 | #ifndef PNG_ALLOCATED |
| 396 | # define PNG_ALLOCATED /* The result of the function is new memory */ |
| 397 | #endif |
Glenn Randers-Pehrson | d7da8bb | 2010-03-13 20:30:10 -0600 | [diff] [blame] | 398 | #ifndef PNG_PRIVATE |
| 399 | # define PNG_PRIVATE /* This is a private libpng function */ |
Glenn Randers-Pehrson | a4d54bd | 2000-07-14 08:15:12 -0500 | [diff] [blame] | 400 | #endif |
Glenn Randers-Pehrson | 31aee0d | 2010-07-29 17:39:14 -0500 | [diff] [blame] | 401 | #ifndef PNG_FP_EXPORT /* A floating point API. */ |
| 402 | # ifdef PNG_FLOATING_POINT_SUPPORTED |
Glenn Randers-Pehrson | 23d3970 | 2010-12-06 18:28:02 -0600 | [diff] [blame] | 403 | # define PNG_FP_EXPORT(ordinal, type, name, args)\ |
| 404 | PNG_EXPORT(ordinal, type, name, args) |
Glenn Randers-Pehrson | 31aee0d | 2010-07-29 17:39:14 -0500 | [diff] [blame] | 405 | # else /* No floating point APIs */ |
Glenn Randers-Pehrson | 23d3970 | 2010-12-06 18:28:02 -0600 | [diff] [blame] | 406 | # define PNG_FP_EXPORT(ordinal, type, name, args) |
Glenn Randers-Pehrson | 31aee0d | 2010-07-29 17:39:14 -0500 | [diff] [blame] | 407 | # endif |
| 408 | #endif |
| 409 | #ifndef PNG_FIXED_EXPORT /* A fixed point API. */ |
| 410 | # ifdef PNG_FIXED_POINT_SUPPORTED |
Glenn Randers-Pehrson | 23d3970 | 2010-12-06 18:28:02 -0600 | [diff] [blame] | 411 | # define PNG_FIXED_EXPORT(ordinal, type, name, args)\ |
| 412 | PNG_EXPORT(ordinal, type, name, args) |
Glenn Randers-Pehrson | 31aee0d | 2010-07-29 17:39:14 -0500 | [diff] [blame] | 413 | # else /* No fixed point APIs */ |
Glenn Randers-Pehrson | 23d3970 | 2010-12-06 18:28:02 -0600 | [diff] [blame] | 414 | # define PNG_FIXED_EXPORT(ordinal, type, name, args) |
Glenn Randers-Pehrson | 31aee0d | 2010-07-29 17:39:14 -0500 | [diff] [blame] | 415 | # endif |
| 416 | #endif |
Glenn Randers-Pehrson | a4d54bd | 2000-07-14 08:15:12 -0500 | [diff] [blame] | 417 | |
John Bowler | baeb6d1 | 2011-11-26 18:21:02 -0600 | [diff] [blame] | 418 | #ifndef PNG_BUILDING_SYMBOL_TABLE |
| 419 | /* Some typedefs to get us started. These should be safe on most of the common |
| 420 | * platforms. |
Glenn Randers-Pehrson | 7253144 | 2010-04-17 08:17:51 -0500 | [diff] [blame] | 421 | * |
John Bowler | baeb6d1 | 2011-11-26 18:21:02 -0600 | [diff] [blame] | 422 | * png_uint_32 and png_int_32 may, currently, be larger than required to hold a |
| 423 | * 32-bit value however this is not normally advisable. |
| 424 | * |
| 425 | * png_uint_16 and png_int_16 should always be two bytes in size - this is |
| 426 | * verified at library build time. |
| 427 | * |
| 428 | * png_byte must always be one byte in size. |
| 429 | * |
| 430 | * The checks below use constants from limits.h, as defined by the ISOC90 |
| 431 | * standard. |
Glenn Randers-Pehrson | b6ce43d | 1998-01-01 07:13:13 -0600 | [diff] [blame] | 432 | */ |
John Bowler | baeb6d1 | 2011-11-26 18:21:02 -0600 | [diff] [blame] | 433 | #if CHAR_BIT == 8 && UCHAR_MAX == 255 |
| 434 | typedef unsigned char png_byte; |
| 435 | #else |
| 436 | # error "libpng requires 8 bit bytes" |
| 437 | #endif |
| 438 | |
| 439 | #if INT_MIN == -32768 && INT_MAX == 32767 |
| 440 | typedef int png_int_16; |
| 441 | #elif SHRT_MIN == -32768 && SHRT_MAX == 32767 |
| 442 | typedef short png_int_16; |
| 443 | #else |
| 444 | # error "libpng requires a signed 16 bit type" |
| 445 | #endif |
| 446 | |
| 447 | #if UINT_MAX == 65535 |
| 448 | typedef unsigned int png_uint_16; |
| 449 | #elif USHRT_MAX == 65535 |
| 450 | typedef unsigned short png_uint_16; |
| 451 | #else |
| 452 | # error "libpng requires an unsigned 16 bit type" |
| 453 | #endif |
| 454 | |
| 455 | #if INT_MIN < -2147483646 && INT_MAX > 2147483646 |
| 456 | typedef int png_int_32; |
| 457 | #elif LONG_MIN < -2147483646 && LONG_MAX > 2147483646 |
| 458 | typedef long int png_int_32; |
| 459 | #else |
| 460 | # error "libpng requires a signed 32 bit (or more) type" |
| 461 | #endif |
| 462 | |
| 463 | #if UINT_MAX > 4294967294 |
| 464 | typedef unsigned int png_uint_32; |
| 465 | #elif ULONG_MAX > 4294967294 |
| 466 | typedef unsigned long int png_uint_32; |
| 467 | #else |
| 468 | # error "libpng requires an unsigned 32 bit (or more) type" |
| 469 | #endif |
| 470 | |
| 471 | /* Prior to 1.6.0 it was possible to disable the use of size_t, 1.6.0, however, |
| 472 | * requires an ISOC90 compiler and relies on consistent behavior of sizeof. |
| 473 | */ |
| 474 | typedef size_t png_size_t; |
| 475 | typedef ptrdiff_t png_ptrdiff_t; |
| 476 | |
| 477 | /* libpng needs to know the maximum value of 'size_t' and this controls the |
| 478 | * definition of png_alloc_size_t, below. This maximum value of size_t limits |
| 479 | * but does not control the maximum allocations the library makes - there is |
| 480 | * direct application control of this through png_set_user_limits(). |
| 481 | */ |
| 482 | #ifndef PNG_SMALL_SIZE_T |
| 483 | /* Compiler specific tests for systems where size_t is known to be less than |
| 484 | * 32 bits (some of these systems may no longer work because of the lack of |
| 485 | * 'far' support; see above.) |
| 486 | */ |
| 487 | # if (defined(__TURBOC__) && !defined(__FLAT__)) ||\ |
| 488 | (defined(_MSC_VER) && defined(MAXSEG_64K)) |
| 489 | # define PNG_SMALL_SIZE_T |
Glenn Randers-Pehrson | 28d4aae | 2009-11-13 16:29:45 -0600 | [diff] [blame] | 490 | # endif |
Guy Schalnat | 6d76471 | 1995-12-19 03:22:19 -0600 | [diff] [blame] | 491 | #endif |
| 492 | |
John Bowler | baeb6d1 | 2011-11-26 18:21:02 -0600 | [diff] [blame] | 493 | /* png_alloc_size_t is guaranteed to be no smaller than png_size_t, and no |
| 494 | * smaller than png_uint_32. Casts from png_size_t or png_uint_32 to |
| 495 | * png_alloc_size_t are not necessary; in fact, it is recommended not to use |
| 496 | * them at all so that the compiler can complain when something turns out to be |
| 497 | * problematic. |
| 498 | * |
| 499 | * Casts in the other direction (from png_alloc_size_t to png_size_t or |
| 500 | * png_uint_32) should be explicitly applied; however, we do not expect to |
| 501 | * encounter practical situations that require such conversions. |
| 502 | * |
| 503 | * PNG_SMALL_SIZE_T must be defined if the maximum value of size_t is less than |
| 504 | * 4294967295 - i.e. less than the maximum value of png_uint_32. |
Andreas Dilger | 47a0c42 | 1997-05-16 02:46:07 -0500 | [diff] [blame] | 505 | */ |
John Bowler | baeb6d1 | 2011-11-26 18:21:02 -0600 | [diff] [blame] | 506 | #ifdef PNG_SMALL_SIZE_T |
| 507 | typedef png_uint_32 png_alloc_size_t; |
Glenn Randers-Pehrson | 6bc53be | 2006-06-16 07:52:03 -0500 | [diff] [blame] | 508 | #else |
John Bowler | baeb6d1 | 2011-11-26 18:21:02 -0600 | [diff] [blame] | 509 | typedef png_size_t png_alloc_size_t; |
Glenn Randers-Pehrson | 6bc53be | 2006-06-16 07:52:03 -0500 | [diff] [blame] | 510 | #endif |
Guy Schalnat | 51f0eb4 | 1995-09-26 05:22:39 -0500 | [diff] [blame] | 511 | |
John Bowler | baeb6d1 | 2011-11-26 18:21:02 -0600 | [diff] [blame] | 512 | /* This macro makes the sizeof operator look and behave like a function, except |
| 513 | * that it can take a type without the enclosing () as an argument so long as |
| 514 | * the type contains no "," characters. |
| 515 | */ |
Glenn Randers-Pehrson | d3a726d | 2010-08-03 20:26:34 -0500 | [diff] [blame] | 516 | #define png_sizeof(x) (sizeof (x)) |
Guy Schalnat | 51f0eb4 | 1995-09-26 05:22:39 -0500 | [diff] [blame] | 517 | |
John Bowler | baeb6d1 | 2011-11-26 18:21:02 -0600 | [diff] [blame] | 518 | /* Prior to 1.6.0 libpng offered limited support for Microsoft C compiler |
| 519 | * implementations of Intel CPU specific support of user-mode segmented address |
| 520 | * spaces, where 16-bit pointers address more than 65536 bytes of memory using |
| 521 | * separate 'segment' registers. The implementation requires two different |
| 522 | * types of pointer (only one of which includes the segment value.) |
| 523 | * |
| 524 | * If required this support is available in version 1.2 of libpng and may be |
| 525 | * available in versions through 1.5, although the correctness of the code has |
| 526 | * not been verified recently. |
Andreas Dilger | 47a0c42 | 1997-05-16 02:46:07 -0500 | [diff] [blame] | 527 | */ |
Guy Schalnat | 51f0eb4 | 1995-09-26 05:22:39 -0500 | [diff] [blame] | 528 | |
John Bowler | baeb6d1 | 2011-11-26 18:21:02 -0600 | [diff] [blame] | 529 | /* Typedef for floating-point numbers that are converted to fixed-point with a |
| 530 | * multiple of 100,000, e.g., gamma |
Glenn Randers-Pehrson | e8b1aa0 | 2010-03-06 11:39:29 -0600 | [diff] [blame] | 531 | */ |
Glenn Randers-Pehrson | 61c32d9 | 2000-02-04 23:40:16 -0600 | [diff] [blame] | 532 | typedef png_int_32 png_fixed_point; |
| 533 | |
Andreas Dilger | 47a0c42 | 1997-05-16 02:46:07 -0500 | [diff] [blame] | 534 | /* Add typedefs for pointers */ |
John Bowler | baeb6d1 | 2011-11-26 18:21:02 -0600 | [diff] [blame] | 535 | typedef void * png_voidp; |
| 536 | typedef const void * png_const_voidp; |
| 537 | typedef png_byte * png_bytep; |
| 538 | typedef const png_byte * png_const_bytep; |
| 539 | typedef png_uint_32 * png_uint_32p; |
| 540 | typedef const png_uint_32 * png_const_uint_32p; |
| 541 | typedef png_int_32 * png_int_32p; |
| 542 | typedef const png_int_32 * png_const_int_32p; |
| 543 | typedef png_uint_16 * png_uint_16p; |
| 544 | typedef const png_uint_16 * png_const_uint_16p; |
| 545 | typedef png_int_16 * png_int_16p; |
| 546 | typedef const png_int_16 * png_const_int_16p; |
| 547 | typedef char * png_charp; |
| 548 | typedef const char * png_const_charp; |
| 549 | typedef png_fixed_point * png_fixed_point_p; |
| 550 | typedef const png_fixed_point * png_const_fixed_point_p; |
| 551 | typedef png_size_t * png_size_tp; |
| 552 | typedef const png_size_t * png_const_size_tp; |
Glenn Randers-Pehrson | be9de0f | 2001-01-22 08:52:16 -0600 | [diff] [blame] | 553 | |
Glenn Randers-Pehrson | 862cb20 | 2010-04-16 22:12:51 -0500 | [diff] [blame] | 554 | #ifdef PNG_STDIO_SUPPORTED |
Glenn Randers-Pehrson | 882340c | 2010-03-13 21:19:51 -0600 | [diff] [blame] | 555 | typedef FILE * png_FILE_p; |
Glenn Randers-Pehrson | be9de0f | 2001-01-22 08:52:16 -0600 | [diff] [blame] | 556 | #endif |
| 557 | |
Glenn Randers-Pehrson | 166c5a3 | 1999-12-10 09:43:02 -0600 | [diff] [blame] | 558 | #ifdef PNG_FLOATING_POINT_SUPPORTED |
John Bowler | baeb6d1 | 2011-11-26 18:21:02 -0600 | [diff] [blame] | 559 | typedef double * png_doublep; |
| 560 | typedef const double * png_const_doublep; |
Glenn Randers-Pehrson | 166c5a3 | 1999-12-10 09:43:02 -0600 | [diff] [blame] | 561 | #endif |
Guy Schalnat | 6d76471 | 1995-12-19 03:22:19 -0600 | [diff] [blame] | 562 | |
Andreas Dilger | 47a0c42 | 1997-05-16 02:46:07 -0500 | [diff] [blame] | 563 | /* Pointers to pointers; i.e. arrays */ |
John Bowler | baeb6d1 | 2011-11-26 18:21:02 -0600 | [diff] [blame] | 564 | typedef png_byte * * png_bytepp; |
| 565 | typedef png_uint_32 * * png_uint_32pp; |
| 566 | typedef png_int_32 * * png_int_32pp; |
| 567 | typedef png_uint_16 * * png_uint_16pp; |
| 568 | typedef png_int_16 * * png_int_16pp; |
| 569 | typedef const char * * png_const_charpp; |
| 570 | typedef char * * png_charpp; |
| 571 | typedef png_fixed_point * * png_fixed_point_pp; |
Glenn Randers-Pehrson | 166c5a3 | 1999-12-10 09:43:02 -0600 | [diff] [blame] | 572 | #ifdef PNG_FLOATING_POINT_SUPPORTED |
John Bowler | baeb6d1 | 2011-11-26 18:21:02 -0600 | [diff] [blame] | 573 | typedef double * * png_doublepp; |
Glenn Randers-Pehrson | 166c5a3 | 1999-12-10 09:43:02 -0600 | [diff] [blame] | 574 | #endif |
Guy Schalnat | 6d76471 | 1995-12-19 03:22:19 -0600 | [diff] [blame] | 575 | |
Glenn Randers-Pehrson | 231e687 | 2001-01-12 15:13:06 -0600 | [diff] [blame] | 576 | /* Pointers to pointers to pointers; i.e., pointer to array */ |
John Bowler | baeb6d1 | 2011-11-26 18:21:02 -0600 | [diff] [blame] | 577 | typedef char * * * png_charppp; |
Guy Schalnat | 6d76471 | 1995-12-19 03:22:19 -0600 | [diff] [blame] | 578 | |
John Bowler | baeb6d1 | 2011-11-26 18:21:02 -0600 | [diff] [blame] | 579 | #endif /* PNG_BUILDING_SYMBOL_TABLE */ |
Guy Schalnat | 51f0eb4 | 1995-09-26 05:22:39 -0500 | [diff] [blame] | 580 | |
Guy Schalnat | 51f0eb4 | 1995-09-26 05:22:39 -0500 | [diff] [blame] | 581 | #endif /* PNGCONF_H */ |