1/*
2 * jconfig.txt
3 *
4 * This file was part of the Independent JPEG Group's software:
5 * Copyright (C) 1991-1994, Thomas G. Lane.
6 * It was modified by The libjpeg-turbo Project to include only code relevant
7 * to libjpeg-turbo.
8 * For conditions of distribution and use, see the accompanying README file.
9 *
10 * This file documents the configuration options that are required to
11 * customize the JPEG software for a particular system.
12 *
13 * The actual configuration options for a particular installation are stored
14 * in jconfig.h.  On many machines, jconfig.h can be generated automatically
15 * or copied from one of the "canned" jconfig files that we supply.  But if
16 * you need to generate a jconfig.h file by hand, this file tells you how.
17 *
18 * DO NOT EDIT THIS FILE --- IT WON'T ACCOMPLISH ANYTHING.
19 * EDIT A COPY NAMED JCONFIG.H.
20 */
21
22
23/*
24 * These symbols indicate the properties of your machine or compiler.
25 * #define the symbol if yes, #undef it if no.
26 */
27
28/* Does your compiler support the declaration "unsigned char" ?
29 * How about "unsigned short" ?
30 */
31#define HAVE_UNSIGNED_CHAR
32#define HAVE_UNSIGNED_SHORT
33
34/* Define "void" as "char" if your compiler doesn't know about type void.
35 * NOTE: be sure to define void such that "void *" represents the most general
36 * pointer type, e.g., that returned by malloc().
37 */
38/* #define void char */
39
40/* Define "const" as empty if your compiler doesn't know the "const" keyword.
41 */
42/* #define const */
43
44/* Define this if an ordinary "char" type is unsigned.
45 * If you're not sure, leaving it undefined will work at some cost in speed.
46 * If you defined HAVE_UNSIGNED_CHAR then the speed difference is minimal.
47 */
48#undef __CHAR_UNSIGNED__
49
50/* Define this if your system has an ANSI-conforming <stddef.h> file.
51 */
52#define HAVE_STDDEF_H
53
54/* Define this if your system has an ANSI-conforming <stdlib.h> file.
55 */
56#define HAVE_STDLIB_H
57
58/* Define this if your system does not have an ANSI/SysV <string.h>,
59 * but does have a BSD-style <strings.h>.
60 */
61#undef NEED_BSD_STRINGS
62
63/* Define this if your system does not provide typedef size_t in any of the
64 * ANSI-standard places (stddef.h, stdlib.h, or stdio.h), but places it in
65 * <sys/types.h> instead.
66 */
67#undef NEED_SYS_TYPES_H
68
69/* Although a real ANSI C compiler can deal perfectly well with pointers to
70 * unspecified structures (see "incomplete types" in the spec), a few pre-ANSI
71 * and pseudo-ANSI compilers get confused.  To keep one of these bozos happy,
72 * define INCOMPLETE_TYPES_BROKEN.  This is not recommended unless you
73 * actually get "missing structure definition" warnings or errors while
74 * compiling the JPEG code.
75 */
76#undef INCOMPLETE_TYPES_BROKEN
77
78/* Define "boolean" as unsigned char, not int, on Windows systems.
79 */
80#ifdef _WIN32
81#ifndef __RPCNDR_H__            /* don't conflict if rpcndr.h already read */
82typedef unsigned char boolean;
83#endif
84#define HAVE_BOOLEAN            /* prevent jmorecfg.h from redefining it */
85#endif
86
87
88/*
89 * The following options affect code selection within the JPEG library,
90 * but they don't need to be visible to applications using the library.
91 * To minimize application namespace pollution, the symbols won't be
92 * defined unless JPEG_INTERNALS has been defined.
93 */
94
95#ifdef JPEG_INTERNALS
96
97/* Define this if your compiler implements ">>" on signed values as a logical
98 * (unsigned) shift; leave it undefined if ">>" is a signed (arithmetic) shift,
99 * which is the normal and rational definition.
100 */
101#undef RIGHT_SHIFT_IS_UNSIGNED
102
103
104#endif /* JPEG_INTERNALS */
105
106
107/*
108 * The remaining options do not affect the JPEG library proper,
109 * but only the sample applications cjpeg/djpeg (see cjpeg.c, djpeg.c).
110 * Other applications can ignore these.
111 */
112
113#ifdef JPEG_CJPEG_DJPEG
114
115/* These defines indicate which image (non-JPEG) file formats are allowed. */
116
117#define BMP_SUPPORTED           /* BMP image file format */
118#define GIF_SUPPORTED           /* GIF image file format */
119#define PPM_SUPPORTED           /* PBMPLUS PPM/PGM image file format */
120#undef RLE_SUPPORTED            /* Utah RLE image file format */
121#define TARGA_SUPPORTED         /* Targa image file format */
122
123/* Define this if you want to name both input and output files on the command
124 * line, rather than using stdout and optionally stdin.  You MUST do this if
125 * your system can't cope with binary I/O to stdin/stdout.  See comments at
126 * head of cjpeg.c or djpeg.c.
127 */
128#undef TWO_FILE_COMMANDLINE
129
130/* By default, we open image files with fopen(...,"rb") or fopen(...,"wb").
131 * This is necessary on systems that distinguish text files from binary files,
132 * and is harmless on most systems that don't.  If you have one of the rare
133 * systems that complains about the "b" spec, define this symbol.
134 */
135#undef DONT_USE_B_MODE
136
137/* Define this if you want percent-done progress reports from cjpeg/djpeg.
138 */
139#undef PROGRESS_REPORT
140
141
142#endif /* JPEG_CJPEG_DJPEG */
143