1 diff --git jmorecfg.h jmorecfg.h
5 * JPEG software for special applications or support machine-dependent
6 * optimizations. Most users will not need to touch this file.
12 * Maximum number of components (color channels) allowed in JPEG image.
13 * To meet the letter of Rec. ITU-T T.81 | ISO/IEC 10918-1, set this to 255.
14 @@ -122,31 +123,17 @@ typedef char JOCTET;
17 /* UINT8 must hold at least the values 0..255. */
19 -#ifdef HAVE_UNSIGNED_CHAR
20 -typedef unsigned char UINT8;
21 -#else /* not HAVE_UNSIGNED_CHAR */
22 -#ifdef __CHAR_UNSIGNED__
24 -#else /* not __CHAR_UNSIGNED__ */
26 -#endif /* __CHAR_UNSIGNED__ */
27 -#endif /* HAVE_UNSIGNED_CHAR */
28 +typedef uint8_t UINT8;
30 /* UINT16 must hold at least the values 0..65535. */
32 -#ifdef HAVE_UNSIGNED_SHORT
33 -typedef unsigned short UINT16;
34 -#else /* not HAVE_UNSIGNED_SHORT */
35 -typedef unsigned int UINT16;
36 -#endif /* HAVE_UNSIGNED_SHORT */
37 +typedef uint16_t UINT16;
39 /* INT16 must hold at least the values -32768..32767. */
41 -#ifndef XMD_H /* X11/xmd.h correctly defines INT16 */
44 +typedef int16_t INT16;
46 /* INT32 must hold at least signed 32-bit values.
48 * NOTE: The INT32 typedef dates back to libjpeg v5 (1994.) Integers were
49 @@ -171,17 +158,9 @@ typedef short INT16;
50 * for internal use, which ensures that internal behavior will always be the
51 * same regardless of any external headers that may be included.
54 -#ifndef XMD_H /* X11/xmd.h correctly defines INT32 */
55 -#ifndef _BASETSD_H_ /* Microsoft defines it in basetsd.h */
56 -#ifndef _BASETSD_H /* MinGW is slightly different */
57 -#ifndef QGLOBAL_H /* Qt defines it in qglobal.h */
63 +typedef int32_t INT32;
65 /* Datatype used for image dimensions. The JPEG standard only supports
66 * images up to 64K*64K due to 16-bit fields in SOF markers. Therefore
67 * "unsigned int" is sufficient on all machines. However, if you need to