MISR Toolkit  1.5.1
jconfig.h
Go to the documentation of this file.
1 /*
2  * jconfig.txt
3  *
4  * Copyright (C) 1991-1994, Thomas G. Lane.
5  * This file is part of the Independent JPEG Group's software.
6  * For conditions of distribution and use, see the accompanying README file.
7  *
8  * This file documents the configuration options that are required to
9  * customize the JPEG software for a particular system.
10  *
11  */
12 
13 
14 /* Does your compiler support function prototypes?
15  * (If not, you also need to use ansi2knr, see install.txt)
16  */
17 /* #undef HAVE_PROTOTYPES */
18 
19 /* Does your compiler support the declaration "unsigned char" ?
20  * How about "unsigned short" ?
21  */
22 #define HAVE_UNSIGNED_CHAR TRUE
23 #define HAVE_UNSIGNED_SHORT TRUE
24 
25 /* Define "void" as "char" if your compiler doesn't know about type void.
26  * NOTE: be sure to define void such that "void *" represents the most general
27  * pointer type, e.g., that returned by malloc().
28  */
29 /* #undef void */
30 
31 /* Define "const" as empty if your compiler doesn't know the "const" keyword.
32  */
33 /* #undef const */
34 
35 /* Define this if an ordinary "char" type is unsigned.
36  * If you're not sure, leaving it undefined will work at some cost in speed.
37  * If you defined HAVE_UNSIGNED_CHAR then the speed difference is minimal.
38  */
39 #undef CHAR_IS_UNSIGNED
40 
41 /* Define this if your system has an ANSI-conforming <stddef.h> file.
42  */
43 #define HAVE_STDDEF_H 1
44 
45 /* Define this if your system has an ANSI-conforming <stdlib.h> file.
46  */
47 #define HAVE_STDLIB_H 1
48 
49 /* Define to 1 if you have the <strings.h> header file. */
50 /* #undef HAVE_STRINGS_H */
51 
52 /* Define to 1 if you have the <string.h> header file. */
53 #define HAVE_STRING_H 1
54 
55 /* Define this if your system does not have an ANSI/SysV <string.h>,
56  * but does have a BSD-style <strings.h>.
57  */
58 #ifdef HAVE_STRING_H
59 #undef NEED_BSD_STRINGS
60 #elif HAVE_STRINGS_H
61 #define NEED_BSD_STRINGS
62 #endif
63 
64 /* Define this if your system does not provide typedef size_t in any of the
65  * ANSI-standard places (stddef.h, stdlib.h, or stdio.h), but places it in
66  * <sys/types.h> instead.
67  */
68 /* #undef NEED_SYS_TYPES_H */
69 
70 /* For 80x86 machines, you need to define NEED_FAR_POINTERS,
71  * unless you are using a large-data memory model or 80386 flat-memory mode.
72  * On less brain-damaged CPUs this symbol must not be defined.
73  * (Defining this symbol causes large data structures to be referenced through
74  * "far" pointers and to be allocated with a special version of malloc.)
75  */
76 #undef NEED_FAR_POINTERS
77 
78 /* Define this if your linker needs global names to be unique in less
79  * than the first 15 characters.
80  */
81 #undef NEED_SHORT_EXTERNAL_NAMES
82 
83 /* Although a real ANSI C compiler can deal perfectly well with pointers to
84  * unspecified structures (see "incomplete types" in the spec), a few pre-ANSI
85  * and pseudo-ANSI compilers get confused. To keep one of these bozos happy,
86  * define INCOMPLETE_TYPES_BROKEN. This is not recommended unless you
87  * actually get "missing structure definition" warnings or errors while
88  * compiling the JPEG code.
89  */
90 #undef INCOMPLETE_TYPES_BROKEN
91 
92 /* Define "boolean" as unsigned char, not int, on Windows systems. */
93 #ifdef _WIN32
94 #ifndef __RPCNDR_H__ /* don't conflict if rpcndr.h already read */
95 typedef unsigned char boolean;
96 #endif
97 #define HAVE_BOOLEAN /* prevent jmorecfg.h from redefining it */
98 #endif
99 
100 
101 /*
102  * The following options affect code selection within the JPEG library,
103  * but they don't need to be visible to applications using the library.
104  * To minimize application namespace pollution, the symbols won't be
105  * defined unless JPEG_INTERNALS has been defined.
106  */
107 
108 #ifdef JPEG_INTERNALS
109 
110 /* Define this if your compiler implements ">>" on signed values as a logical
111  * (unsigned) shift; leave it undefined if ">>" is a signed (arithmetic) shift,
112  * which is the normal and rational definition.
113  */
114 #undef RIGHT_SHIFT_IS_UNSIGNED
115 #undef INLINE
116 /* These are for configuring the JPEG memory manager. */
117 #undef DEFAULT_MAX_MEM
118 #undef NO_MKTEMP
119 
120 #endif /* JPEG_INTERNALS */
121 
122 
123 /*
124  * The remaining options do not affect the JPEG library proper,
125  * but only the sample applications cjpeg/djpeg (see cjpeg.c, djpeg.c).
126  * Other applications can ignore these.
127  */
128 
129 #ifdef JPEG_CJPEG_DJPEG
130 
131 /* These defines indicate which image (non-JPEG) file formats are allowed. */
132 
133 #define BMP_SUPPORTED /* BMP image file format */
134 #define GIF_SUPPORTED /* GIF image file format */
135 #define PPM_SUPPORTED /* PBMPLUS PPM/PGM image file format */
136 #undef RLE_SUPPORTED /* Utah RLE image file format */
137 #define TARGA_SUPPORTED /* Targa image file format */
138 
139 /* Define this if you want to name both input and output files on the command
140  * line, rather than using stdout and optionally stdin. You MUST do this if
141  * your system can't cope with binary I/O to stdin/stdout. See comments at
142  * head of cjpeg.c or djpeg.c.
143  */
144 #if !defined(__APPLE__)
145 #undef TWO_FILE_COMMANDLINE
146 #else
147 #define USE_CCOMMAND /* Command line reader for Macintosh */
148 #define TWO_FILE_COMMANDLINE /* Binary I/O thru stdin/stdout doesn't work */
149 #endif
150 
151 /* Define this if your system needs explicit cleanup of temporary files.
152  * This is crucial under MS-DOS, where the temporary "files" may be areas
153  * of extended memory; on most other systems it's not as important.
154  */
155 #undef NEED_SIGNAL_CATCHER
156 
157 /* By default, we open image files with fopen(...,"rb") or fopen(...,"wb").
158  * This is necessary on systems that distinguish text files from binary files,
159  * and is harmless on most systems that don't. If you have one of the rare
160  * systems that complains about the "b" spec, define this symbol.
161  */
162 #undef DONT_USE_B_MODE
163 
164 /* Define this if you want percent-done progress reports from cjpeg/djpeg. */
165 #undef PROGRESS_REPORT
166 
167 #endif /* JPEG_CJPEG_DJPEG */
unsigned char boolean
Definition: jconfig.h:20

MISR Toolkit - Copyright © 2005 - 2020 Jet Propulsion Laboratory
Generated on Fri Jun 19 2020 22:49:52