5 * under the terms of the GNU General Public License version 2 only, as
6 * published by the Free Software Foundation. Oracle designates this
7 * particular file as subject to the "Classpath" exception as provided
8 * by Oracle in the LICENSE file that accompanied this code.
9 *
10 * This code is distributed in the hope that it will be useful, but WITHOUT
11 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
13 * version 2 for more details (a copy is included in the LICENSE file that
14 * accompanied this code).
15 *
16 * You should have received a copy of the GNU General Public License version
17 * 2 along with this work; if not, write to the Free Software Foundation,
18 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
19 *
20 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
21 * or visit www.oracle.com if you need additional information or have any
22 * questions.
23 */
24
25 /* pngconf.h - machine configurable file for libpng
26 *
27 * This file is available under and governed by the GNU General Public
28 * License version 2 only, as published by the Free Software Foundation.
29 * However, the following notice accompanied the original version of this
30 * file and, per its terms, should not be removed:
31 *
32 * libpng version 1.6.35, July 15, 2018
33 *
34 * Copyright (c) 1998-2002,2004,2006-2016,2018 Glenn Randers-Pehrson
35 * (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
36 * (Version 0.88 Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc.)
37 *
38 * This code is released under the libpng license.
39 * For conditions of distribution and use, see the disclaimer
40 * and license in png.h
41 *
42 * Any machine specific code is near the front of this file, so if you
43 * are configuring libpng for a machine, you may want to read the section
44 * starting here down to where it starts to typedef png_color, png_text,
45 * and png_info.
46 */
47
48 #ifndef PNGCONF_H
49 #define PNGCONF_H
50
51 #ifndef PNG_BUILDING_SYMBOL_TABLE /* else includes may cause problems */
52
53 /* From libpng 1.6.0 libpng requires an ANSI X3.159-1989 ("ISOC90") compliant C
54 * compiler for correct compilation. The following header files are required by
55 * the standard. If your compiler doesn't provide these header files, or they
56 * do not match the standard, you will need to provide/improve them.
68 * include this unnecessary header file.
69 */
70
71 #ifdef PNG_STDIO_SUPPORTED
72 /* Required for the definition of FILE: */
73 # include <stdio.h>
74 #endif
75
76 #ifdef PNG_SETJMP_SUPPORTED
77 /* Required for the definition of jmp_buf and the declaration of longjmp: */
78 # include <setjmp.h>
79 #endif
80
81 #ifdef PNG_CONVERT_tIME_SUPPORTED
82 /* Required for struct tm: */
83 # include <time.h>
84 #endif
85
86 #endif /* PNG_BUILDING_SYMBOL_TABLE */
87
88 /* Prior to 1.6.0 it was possible to turn off 'const' in declarations using
89 * PNG_NO_CONST; this is no longer supported except for data declarations which
90 * apparently still cause problems in 2011 on some compilers.
91 */
92 #define PNG_CONST const /* backward compatibility only */
93
94 /* This controls optimization of the reading of 16-bit and 32-bit values
95 * from PNG files. It can be set on a per-app-file basis - it
96 * just changes whether a macro is used when the function is called.
97 * The library builder sets the default; if read functions are not
98 * built into the library the macro implementation is forced on.
99 */
100 #ifndef PNG_READ_INT_FUNCTIONS_SUPPORTED
101 # define PNG_USE_READ_MACROS
102 #endif
103 #if !defined(PNG_NO_USE_READ_MACROS) && !defined(PNG_USE_READ_MACROS)
104 # if PNG_DEFAULT_READ_MACROS
105 # define PNG_USE_READ_MACROS
106 # endif
107 #endif
108
109 /* COMPILER SPECIFIC OPTIONS.
110 *
111 * These options are provided so that a variety of difficult compilers
112 * can be used. Some are fixed at build time (e.g. PNG_API_RULE
113 * below) but still have compiler specific implementations, others
114 * may be changed on a per-file basis when compiling against libpng.
115 */
|
5 * under the terms of the GNU General Public License version 2 only, as
6 * published by the Free Software Foundation. Oracle designates this
7 * particular file as subject to the "Classpath" exception as provided
8 * by Oracle in the LICENSE file that accompanied this code.
9 *
10 * This code is distributed in the hope that it will be useful, but WITHOUT
11 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
13 * version 2 for more details (a copy is included in the LICENSE file that
14 * accompanied this code).
15 *
16 * You should have received a copy of the GNU General Public License version
17 * 2 along with this work; if not, write to the Free Software Foundation,
18 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
19 *
20 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
21 * or visit www.oracle.com if you need additional information or have any
22 * questions.
23 */
24
25 /* pngconf.h - machine-configurable file for libpng
26 *
27 * This file is available under and governed by the GNU General Public
28 * License version 2 only, as published by the Free Software Foundation.
29 * However, the following notice accompanied the original version of this
30 * file and, per its terms, should not be removed:
31 *
32 * libpng version 1.6.37
33 *
34 * Copyright (c) 2018-2019 Cosmin Truta
35 * Copyright (c) 1998-2002,2004,2006-2016,2018 Glenn Randers-Pehrson
36 * Copyright (c) 1996-1997 Andreas Dilger
37 * Copyright (c) 1995-1996 Guy Eric Schalnat, Group 42, Inc.
38 *
39 * This code is released under the libpng license.
40 * For conditions of distribution and use, see the disclaimer
41 * and license in png.h
42 *
43 * Any machine specific code is near the front of this file, so if you
44 * are configuring libpng for a machine, you may want to read the section
45 * starting here down to where it starts to typedef png_color, png_text,
46 * and png_info.
47 */
48
49 #ifndef PNGCONF_H
50 #define PNGCONF_H
51
52 #ifndef PNG_BUILDING_SYMBOL_TABLE /* else includes may cause problems */
53
54 /* From libpng 1.6.0 libpng requires an ANSI X3.159-1989 ("ISOC90") compliant C
55 * compiler for correct compilation. The following header files are required by
56 * the standard. If your compiler doesn't provide these header files, or they
57 * do not match the standard, you will need to provide/improve them.
69 * include this unnecessary header file.
70 */
71
72 #ifdef PNG_STDIO_SUPPORTED
73 /* Required for the definition of FILE: */
74 # include <stdio.h>
75 #endif
76
77 #ifdef PNG_SETJMP_SUPPORTED
78 /* Required for the definition of jmp_buf and the declaration of longjmp: */
79 # include <setjmp.h>
80 #endif
81
82 #ifdef PNG_CONVERT_tIME_SUPPORTED
83 /* Required for struct tm: */
84 # include <time.h>
85 #endif
86
87 #endif /* PNG_BUILDING_SYMBOL_TABLE */
88
89 /* Prior to 1.6.0, it was possible to turn off 'const' in declarations,
90 * using PNG_NO_CONST. This is no longer supported.
91 */
92 #define PNG_CONST const /* backward compatibility only */
93
94 /* This controls optimization of the reading of 16-bit and 32-bit
95 * values from PNG files. It can be set on a per-app-file basis: it
96 * just changes whether a macro is used when the function is called.
97 * The library builder sets the default; if read functions are not
98 * built into the library the macro implementation is forced on.
99 */
100 #ifndef PNG_READ_INT_FUNCTIONS_SUPPORTED
101 # define PNG_USE_READ_MACROS
102 #endif
103 #if !defined(PNG_NO_USE_READ_MACROS) && !defined(PNG_USE_READ_MACROS)
104 # if PNG_DEFAULT_READ_MACROS
105 # define PNG_USE_READ_MACROS
106 # endif
107 #endif
108
109 /* COMPILER SPECIFIC OPTIONS.
110 *
111 * These options are provided so that a variety of difficult compilers
112 * can be used. Some are fixed at build time (e.g. PNG_API_RULE
113 * below) but still have compiler specific implementations, others
114 * may be changed on a per-file basis when compiling against libpng.
115 */
|