1 | /* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ |
---|
2 | /* ***** BEGIN LICENSE BLOCK ***** |
---|
3 | * Version: NPL 1.1/GPL 2.0/LGPL 2.1 |
---|
4 | * |
---|
5 | * The contents of this file are subject to the Netscape Public License |
---|
6 | * Version 1.1 (the "License"); you may not use this file except in |
---|
7 | * compliance with the License. You may obtain a copy of the License at |
---|
8 | * http://www.mozilla.org/NPL/ |
---|
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 NPL, 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 NPL, the GPL or the LGPL. |
---|
35 | * |
---|
36 | * ***** END LICENSE BLOCK ***** */ |
---|
37 | |
---|
38 | /* |
---|
39 | * jconfig.h to configure the IJG JPEG library for the Mozilla/Netscape |
---|
40 | * environment. Note that there are also Mozilla mods in jmorecfg.h. |
---|
41 | */ |
---|
42 | |
---|
43 | /* We assume an ANSI C or C++ compilation environment */ |
---|
44 | #define HAVE_PROTOTYPES |
---|
45 | #define HAVE_UNSIGNED_CHAR |
---|
46 | #define HAVE_UNSIGNED_SHORT |
---|
47 | /* #define void char */ |
---|
48 | /* #define const */ |
---|
49 | #ifndef HAVE_STDDEF_H |
---|
50 | #define HAVE_STDDEF_H |
---|
51 | #endif /* HAVE_STDDEF_H */ |
---|
52 | #ifndef HAVE_STDLIB_H |
---|
53 | #define HAVE_STDLIB_H |
---|
54 | #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 | |
---|
62 | /* With this setting, the IJG code will work regardless of whether |
---|
63 | * type "char" is signed or unsigned. |
---|
64 | */ |
---|
65 | #undef CHAR_IS_UNSIGNED |
---|
66 | |
---|
67 | |
---|
68 | /* defines that need not be visible to callers of the IJG library */ |
---|
69 | |
---|
70 | #ifdef JPEG_INTERNALS |
---|
71 | |
---|
72 | /* If right shift of "long" quantities is unsigned on your machine, |
---|
73 | * you'll have to define this. Fortunately few people should need it. |
---|
74 | */ |
---|
75 | #undef RIGHT_SHIFT_IS_UNSIGNED |
---|
76 | |
---|
77 | #ifdef XP_MAC /* Macintosh */ |
---|
78 | |
---|
79 | #define ALIGN_TYPE long /* for sane memory alignment */ |
---|
80 | #define NO_GETENV /* we do have the function, but it's dead */ |
---|
81 | |
---|
82 | #endif /* XP_MAC */ |
---|
83 | |
---|
84 | #endif /* JPEG_INTERNALS */ |
---|
85 | |
---|
86 | |
---|
87 | /* these defines are not interesting for building just the IJG library, |
---|
88 | * but we leave 'em here anyway. |
---|
89 | */ |
---|
90 | #ifdef JPEG_CJPEG_DJPEG |
---|
91 | |
---|
92 | #define BMP_SUPPORTED /* BMP image file format */ |
---|
93 | #define GIF_SUPPORTED /* GIF image file format */ |
---|
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 */ |
---|