OLD | NEW |
1 /* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ | 1 /* jconfig.h. Generated from jconfig.h.in by configure. */ |
2 /* ***** BEGIN LICENSE BLOCK ***** | 2 /* Version ID for the JPEG library. |
3 * Version: MPL 1.1/GPL 2.0/LGPL 2.1 | 3 * Might be useful for tests like "#if JPEG_LIB_VERSION >= 60". |
4 * | 4 */ |
5 * The contents of this file are subject to the Mozilla Public License Version | 5 #ifndef JPEG_LIB_VERSION |
6 * 1.1 (the "License"); you may not use this file except in compliance with | 6 #define JPEG_LIB_VERSION 62 |
7 * the License. You may obtain a copy of the License at | 7 #endif /* JPEG_LIB_VERSION */ |
8 * http://www.mozilla.org/MPL/ | |
9 * | |
10 * Software distributed under the License is distributed on an "AS IS" basis, | |
11 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License | |
12 * for the specific language governing rights and limitations under the | |
13 * License. | |
14 * | |
15 * The Original Code is mozilla.org code. | |
16 * | |
17 * The Initial Developer of the Original Code is | |
18 * Netscape Communications Corporation. | |
19 * Portions created by the Initial Developer are Copyright (C) 1998 | |
20 * the Initial Developer. All Rights Reserved. | |
21 * | |
22 * Contributor(s): | |
23 * | |
24 * Alternatively, the contents of this file may be used under the terms of | |
25 * either the GNU General Public License Version 2 or later (the "GPL"), or | |
26 * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), | |
27 * in which case the provisions of the GPL or the LGPL are applicable instead | |
28 * of those above. If you wish to allow use of your version of this file only | |
29 * under the terms of either the GPL or the LGPL, and not to allow others to | |
30 * use your version of this file under the terms of the MPL, indicate your | |
31 * decision by deleting the provisions above and replace them with the notice | |
32 * and other provisions required by the GPL or the LGPL. If you do not delete | |
33 * the provisions above, a recipient may use your version of this file under | |
34 * the terms of any one of the MPL, the GPL or the LGPL. | |
35 * | |
36 * ***** END LICENSE BLOCK ***** */ | |
37 | 8 |
38 /* | 9 /* Support arithmetic encoding */ |
39 * jconfig.h to configure the IJG JPEG library for the Mozilla/Netscape | 10 #define C_ARITH_CODING_SUPPORTED 1 |
40 * environment. Note that there are also Mozilla mods in jmorecfg.h. | |
41 */ | |
42 | 11 |
43 /* We assume an ANSI C or C++ compilation environment */ | 12 /* Support arithmetic decoding */ |
44 #define HAVE_PROTOTYPES | 13 #define D_ARITH_CODING_SUPPORTED 1 |
45 #define HAVE_UNSIGNED_CHAR | 14 |
46 #define HAVE_UNSIGNED_SHORT | 15 /* Define if your compiler supports prototypes */ |
47 /* #define void char */ | 16 #ifndef HAVE_PROTOTYPES |
48 /* #define const */ | 17 #define HAVE_PROTOTYPES 1 |
| 18 #endif /* HAVE_PROTOTYPES */ |
| 19 |
| 20 /* Define to 1 if you have the <stddef.h> header file. */ |
49 #ifndef HAVE_STDDEF_H | 21 #ifndef HAVE_STDDEF_H |
50 #define HAVE_STDDEF_H | 22 #define HAVE_STDDEF_H 1 |
51 #endif /* HAVE_STDDEF_H */ | 23 #endif /* HAVE_STDDEF_H */ |
| 24 |
| 25 /* Define to 1 if you have the <stdlib.h> header file. */ |
52 #ifndef HAVE_STDLIB_H | 26 #ifndef HAVE_STDLIB_H |
53 #define HAVE_STDLIB_H | 27 #define HAVE_STDLIB_H 1 |
54 #endif /* HAVE_STDLIB_H */ | 28 #endif /* HAVE_STDLIB_H */ |
55 #undef NEED_BSD_STRINGS | |
56 #undef NEED_SYS_TYPES_H | |
57 #undef NEED_FAR_POINTERS | |
58 #undef NEED_SHORT_EXTERNAL_NAMES | |
59 /* Define this if you get warnings about undefined structures. */ | |
60 #undef INCOMPLETE_TYPES_BROKEN | |
61 | 29 |
62 /* With this setting, the IJG code will work regardless of whether | 30 /* Define to 1 if the system has the type `unsigned char'. */ |
63 * type "char" is signed or unsigned. | 31 #ifndef HAVE_UNSIGNED_CHAR |
64 */ | 32 #define HAVE_UNSIGNED_CHAR 1 |
65 #undef CHAR_IS_UNSIGNED | 33 #endif /* HAVE_UNSIGNED_CHAR */ |
66 | 34 |
| 35 /* Define to 1 if the system has the type `unsigned short'. */ |
| 36 #ifndef HAVE_UNSIGNED_SHORT |
| 37 #define HAVE_UNSIGNED_SHORT 1 |
| 38 #endif /* HAVE_UNSIGNED_SHORT */ |
67 | 39 |
68 /* defines that need not be visible to callers of the IJG library */ | 40 /* Define if you want use complete types */ |
| 41 /* #undef INCOMPLETE_TYPES_BROKEN */ |
69 | 42 |
70 #ifdef JPEG_INTERNALS | 43 /* Define if you have BSD-like bzero and bcopy */ |
| 44 /* #undef NEED_BSD_STRINGS */ |
71 | 45 |
72 /* If right shift of "long" quantities is unsigned on your machine, | 46 /* Define if you need short function names */ |
73 * you'll have to define this. Fortunately few people should need it. | 47 /* #undef NEED_SHORT_EXTERNAL_NAMES */ |
74 */ | |
75 #undef RIGHT_SHIFT_IS_UNSIGNED | |
76 | 48 |
77 #ifdef XP_MAC /* Macintosh */ | 49 /* Define if you have sys/types.h */ |
| 50 /* #undef NEED_SYS_TYPES_H */ |
78 | 51 |
79 #define ALIGN_TYPE long /* for sane memory alignment */ | 52 /* Define if shift is unsigned */ |
80 #define NO_GETENV /* we do have the function, but it's dead */ | 53 /* #undef RIGHT_SHIFT_IS_UNSIGNED */ |
81 | 54 |
82 #endif /* XP_MAC */ | 55 /* Use accelerated SIMD routines. */ |
| 56 #define WITH_SIMD 1 |
83 | 57 |
84 #endif /* JPEG_INTERNALS */ | 58 /* Define to 1 if type `char' is unsigned and you are not using gcc. */ |
| 59 #ifndef __CHAR_UNSIGNED__ |
| 60 /* # undef __CHAR_UNSIGNED__ */ |
| 61 #endif |
85 | 62 |
| 63 /* Define to empty if `const' does not conform to ANSI C. */ |
| 64 /* #undef const */ |
86 | 65 |
87 /* these defines are not interesting for building just the IJG library, | 66 /* Define to `__inline__' or `__inline' if that's what the C compiler |
88 * but we leave 'em here anyway. | 67 calls it, or to nothing if 'inline' is not supported under any name. */ |
89 */ | 68 #ifndef __cplusplus |
90 #ifdef JPEG_CJPEG_DJPEG | 69 /* #undef inline */ |
| 70 #endif |
91 | 71 |
92 #define BMP_SUPPORTED» » /* BMP image file format */ | 72 /* Define to `unsigned int' if <sys/types.h> does not define. */ |
93 #define GIF_SUPPORTED» » /* GIF image file format */ | 73 /* #undef size_t */ |
94 #define PPM_SUPPORTED» » /* PBMPLUS PPM/PGM image file format */ | |
95 #undef RLE_SUPPORTED» » /* Utah RLE image file format */ | |
96 #define TARGA_SUPPORTED»» /* Targa image file format */ | |
97 | |
98 #undef TWO_FILE_COMMANDLINE | |
99 #undef NEED_SIGNAL_CATCHER | |
100 #undef DONT_USE_B_MODE | |
101 #undef PROGRESS_REPORT | |
102 | |
103 #endif /* JPEG_CJPEG_DJPEG */ | |
OLD | NEW |