1 #define HAVE_PROTOTYPES
2 #define HAVE_UNSIGNED_CHAR
3 #define HAVE_UNSIGNED_SHORT
5 /* Define this if an ordinary "char" type is unsigned.
6 * If you're not sure, leaving it undefined will work at some cost in speed.
7 * If you defined HAVE_UNSIGNED_CHAR then the speed difference is minimal.
9 #undef CHAR_IS_UNSIGNED
11 #if defined __MINGW__ || defined __MINGW32__ || (!defined WIN32 && !defined _WIN32)
12 /* Define this if your system has an ANSI-conforming <stddef.h> file.
16 /* Define this if your system has an ANSI-conforming <stdlib.h> file.
21 /* Define this if your system does not have an ANSI/SysV <string.h>,
22 * but does have a BSD-style <strings.h>.
24 #undef NEED_BSD_STRINGS
26 /* Define this if your system does not provide typedef size_t in any of the
27 * ANSI-standard places (stddef.h, stdlib.h, or stdio.h), but places it in
28 * <sys/types.h> instead.
30 #undef NEED_SYS_TYPES_H
32 /* For 80x86 machines, you need to define NEED_FAR_POINTERS,
33 * unless you are using a large-data memory model or 80386 flat-memory mode.
34 * On less brain-damaged CPUs this symbol must not be defined.
35 * (Defining this symbol causes large data structures to be referenced through
36 * "far" pointers and to be allocated with a special version of malloc.)
38 #undef NEED_FAR_POINTERS
40 /* Define this if your linker needs global names to be unique in less
41 * than the first 15 characters.
43 #undef NEED_SHORT_EXTERNAL_NAMES
45 /* Although a real ANSI C compiler can deal perfectly well with pointers to
46 * unspecified structures (see "incomplete types" in the spec), a few pre-ANSI
47 * and pseudo-ANSI compilers get confused. To keep one of these bozos happy,
48 * define INCOMPLETE_TYPES_BROKEN. This is not recommended unless you
49 * actually get "missing structure definition" warnings or errors while
50 * compiling the JPEG code.
52 #undef INCOMPLETE_TYPES_BROKEN
54 /* Define "boolean" as unsigned char, not int, on Windows systems.
57 #ifndef __RPCNDR_H__ /* don't conflict if rpcndr.h already read */
58 typedef unsigned char boolean;
60 #define HAVE_BOOLEAN /* prevent jmorecfg.h from redefining it */
65 * The following options affect code selection within the JPEG library,
66 * but they don't need to be visible to applications using the library.
67 * To minimize application namespace pollution, the symbols won't be
68 * defined unless JPEG_INTERNALS has been defined.
73 /* Define this if your compiler implements ">>" on signed values as a logical
74 * (unsigned) shift; leave it undefined if ">>" is a signed (arithmetic) shift,
75 * which is the normal and rational definition.
77 #undef RIGHT_SHIFT_IS_UNSIGNED
79 /* These are for configuring the JPEG memory manager. */
80 #define DEFAULT_MAX_MEM 1073741824 /*1Gb*/
82 #if !defined WIN32 && !defined _WIN32
83 #define INLINE __inline__
87 #endif /* JPEG_INTERNALS */
91 * The remaining options do not affect the JPEG library proper,
92 * but only the sample applications cjpeg/djpeg (see cjpeg.c, djpeg.c).
93 * Other applications can ignore these.
96 #ifdef JPEG_CJPEG_DJPEG
98 /* These defines indicate which image (non-JPEG) file formats are allowed. */
100 #define BMP_SUPPORTED /* BMP image file format */
101 #define GIF_SUPPORTED /* GIF image file format */
102 #define PPM_SUPPORTED /* PBMPLUS PPM/PGM image file format */
103 #undef RLE_SUPPORTED /* Utah RLE image file format */
104 #define TARGA_SUPPORTED /* Targa image file format */
106 /* Define this if you want to name both input and output files on the command
107 * line, rather than using stdout and optionally stdin. You MUST do this if
108 * your system can't cope with binary I/O to stdin/stdout. See comments at
109 * head of cjpeg.c or djpeg.c.
111 #if defined WIN32 || defined _WIN32
112 #define TWO_FILE_COMMANDLINE /* optional */
113 #define USE_SETMODE /* Microsoft has setmode() */
115 #undef TWO_FILE_COMMANDLINE
118 /* Define this if your system needs explicit cleanup of temporary files.
119 * This is crucial under MS-DOS, where the temporary "files" may be areas
120 * of extended memory; on most other systems it's not as important.
122 #undef NEED_SIGNAL_CATCHER
124 /* By default, we open image files with fopen(...,"rb") or fopen(...,"wb").
125 * This is necessary on systems that distinguish text files from binary files,
126 * and is harmless on most systems that don't. If you have one of the rare
127 * systems that complains about the "b" spec, define this symbol.
129 #undef DONT_USE_B_MODE
131 /* Define this if you want percent-done progress reports from cjpeg/djpeg.
133 #undef PROGRESS_REPORT
136 #endif /* JPEG_CJPEG_DJPEG */