2006-04-28 04:35:01 +00:00
|
|
|
/* jconfig.h Modified for multiple platforms */
|
2006-04-06 22:20:29 +00:00
|
|
|
|
2006-04-28 04:35:01 +00:00
|
|
|
#ifdef _WIN32
|
2006-04-06 22:20:29 +00:00
|
|
|
#include "win-config.h"
|
2006-04-28 04:35:01 +00:00
|
|
|
#elif ( ! defined(__APPLE__))
|
|
|
|
#include "config.h"
|
2006-04-06 22:20:29 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#define HAVE_PROTOTYPES
|
|
|
|
#define HAVE_UNSIGNED_CHAR
|
|
|
|
#define HAVE_UNSIGNED_SHORT
|
2006-04-28 04:35:01 +00:00
|
|
|
#ifdef __APPLE__
|
|
|
|
#undef void
|
|
|
|
#undef const
|
|
|
|
#define HAVE_STDDEF_H
|
|
|
|
#define INLINE __inline__
|
|
|
|
/* These are for configuring the JPEG memory manager. */
|
|
|
|
#undef DEFAULT_MAX_MEM
|
|
|
|
#undef NO_MKTEMP
|
|
|
|
#endif
|
2006-04-06 22:20:29 +00:00
|
|
|
#undef CHAR_IS_UNSIGNED
|
|
|
|
#undef NEED_BSD_STRINGS
|
|
|
|
#ifdef HAVE_SYS_TYPES_H
|
|
|
|
#define NEED_SYS_TYPES_H
|
|
|
|
#else
|
|
|
|
#undef NEED_SYS_TYPES_H
|
|
|
|
#endif
|
|
|
|
#undef NEED_FAR_POINTERS /* we presume a 32-bit flat memory model */
|
|
|
|
#undef NEED_SHORT_EXTERNAL_NAMES
|
|
|
|
#undef INCOMPLETE_TYPES_BROKEN
|
|
|
|
|
2006-04-28 04:35:01 +00:00
|
|
|
#ifndef __APPLE__
|
2006-04-06 22:20:29 +00:00
|
|
|
/* Define "boolean" as unsigned char, not int, per Windows custom */
|
|
|
|
#ifndef __RPCNDR_H__ /* don't conflict if rpcndr.h already read */
|
|
|
|
typedef unsigned char boolean;
|
|
|
|
#endif
|
|
|
|
#define HAVE_BOOLEAN /* prevent jmorecfg.h from redefining it */
|
2006-04-28 04:35:01 +00:00
|
|
|
#endif
|
2006-04-06 22:20:29 +00:00
|
|
|
|
|
|
|
|
|
|
|
#ifdef JPEG_INTERNALS
|
|
|
|
|
|
|
|
#undef RIGHT_SHIFT_IS_UNSIGNED
|
|
|
|
|
|
|
|
#endif /* JPEG_INTERNALS */
|
|
|
|
|
|
|
|
#ifdef JPEG_CJPEG_DJPEG
|
|
|
|
|
|
|
|
#define BMP_SUPPORTED /* BMP image file format */
|
|
|
|
#define GIF_SUPPORTED /* GIF image file format */
|
|
|
|
#define PPM_SUPPORTED /* PBMPLUS PPM/PGM image file format */
|
|
|
|
#undef RLE_SUPPORTED /* Utah RLE image file format */
|
|
|
|
#define TARGA_SUPPORTED /* Targa image file format */
|
|
|
|
|
|
|
|
#define TWO_FILE_COMMANDLINE /* optional */
|
|
|
|
#ifdef _WIN32
|
|
|
|
#define USE_SETMODE /* Microsoft has setmode() */
|
|
|
|
#endif
|
|
|
|
#undef NEED_SIGNAL_CATCHER
|
|
|
|
#undef DONT_USE_B_MODE
|
|
|
|
#undef PROGRESS_REPORT /* optional */
|
|
|
|
|
|
|
|
#endif /* JPEG_CJPEG_DJPEG */
|