Back to index

lightning-sunbird  0.9+nobinonly
jconfig.h
Go to the documentation of this file.
00001 /* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
00002 /* ***** BEGIN LICENSE BLOCK *****
00003  * Version: NPL 1.1/GPL 2.0/LGPL 2.1
00004  *
00005  * The contents of this file are subject to the Netscape Public License
00006  * Version 1.1 (the "License"); you may not use this file except in
00007  * compliance with the License. You may obtain a copy of the License at
00008  * http://www.mozilla.org/NPL/
00009  *
00010  * Software distributed under the License is distributed on an "AS IS" basis,
00011  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
00012  * for the specific language governing rights and limitations under the
00013  * License.
00014  *
00015  * The Original Code is mozilla.org code.
00016  *
00017  * The Initial Developer of the Original Code is 
00018  * Netscape Communications Corporation.
00019  * Portions created by the Initial Developer are Copyright (C) 1998
00020  * the Initial Developer. All Rights Reserved.
00021  *
00022  * Contributor(s):
00023  *
00024  * Alternatively, the contents of this file may be used under the terms of
00025  * either the GNU General Public License Version 2 or later (the "GPL"), or 
00026  * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
00027  * in which case the provisions of the GPL or the LGPL are applicable instead
00028  * of those above. If you wish to allow use of your version of this file only
00029  * under the terms of either the GPL or the LGPL, and not to allow others to
00030  * use your version of this file under the terms of the NPL, indicate your
00031  * decision by deleting the provisions above and replace them with the notice
00032  * and other provisions required by the GPL or the LGPL. If you do not delete
00033  * the provisions above, a recipient may use your version of this file under
00034  * the terms of any one of the NPL, the GPL or the LGPL.
00035  *
00036  * ***** END LICENSE BLOCK ***** */
00037 
00038 /*
00039  * jconfig.h to configure the IJG JPEG library for the Mozilla/Netscape
00040  * environment.  Note that there are also Mozilla mods in jmorecfg.h.
00041  */
00042 
00043 /* We assume an ANSI C or C++ compilation environment */
00044 #define HAVE_PROTOTYPES 
00045 #define HAVE_UNSIGNED_CHAR 
00046 #define HAVE_UNSIGNED_SHORT 
00047 /* #define void char */
00048 /* #define const */
00049 #ifndef HAVE_STDDEF_H 
00050 #define HAVE_STDDEF_H 
00051 #endif /* HAVE_STDDEF_H */
00052 #ifndef HAVE_STDLIB_H
00053 #define HAVE_STDLIB_H 
00054 #endif /* HAVE_STDLIB_H */
00055 #undef NEED_BSD_STRINGS
00056 #undef NEED_SYS_TYPES_H
00057 #undef NEED_FAR_POINTERS
00058 #undef NEED_SHORT_EXTERNAL_NAMES
00059 /* Define this if you get warnings about undefined structures. */
00060 #undef INCOMPLETE_TYPES_BROKEN
00061 
00062 /* With this setting, the IJG code will work regardless of whether
00063  * type "char" is signed or unsigned.
00064  */
00065 #undef CHAR_IS_UNSIGNED
00066 
00067 
00068 /* defines that need not be visible to callers of the IJG library */
00069 
00070 #ifdef JPEG_INTERNALS
00071 
00072 /* If right shift of "long" quantities is unsigned on your machine,
00073  * you'll have to define this.  Fortunately few people should need it.
00074  */
00075 #undef RIGHT_SHIFT_IS_UNSIGNED
00076 
00077 #ifdef XP_MAC                   /* Macintosh */
00078 
00079 #define ALIGN_TYPE long         /* for sane memory alignment */
00080 #define NO_GETENV               /* we do have the function, but it's dead */
00081 
00082 #endif /* XP_MAC */
00083 
00084 #endif /* JPEG_INTERNALS */
00085 
00086 
00087 /* these defines are not interesting for building just the IJG library,
00088  * but we leave 'em here anyway.
00089  */
00090 #ifdef JPEG_CJPEG_DJPEG
00091 
00092 #define BMP_SUPPORTED              /* BMP image file format */
00093 #define GIF_SUPPORTED              /* GIF image file format */
00094 #define PPM_SUPPORTED              /* PBMPLUS PPM/PGM image file format */
00095 #undef RLE_SUPPORTED        /* Utah RLE image file format */
00096 #define TARGA_SUPPORTED            /* Targa image file format */
00097 
00098 #undef TWO_FILE_COMMANDLINE
00099 #undef NEED_SIGNAL_CATCHER
00100 #undef DONT_USE_B_MODE
00101 #undef PROGRESS_REPORT
00102 
00103 #endif /* JPEG_CJPEG_DJPEG */