File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4444 defines their own types with the same names, so we need to be able to undef
4545 ours before including the JPEG code. */
4646
47- #if __STDC_VERSION__ >= 199901L /* C99+ */
48-
4947#include <stdint.h>
5048
5149#define INT8 int8_t
5553#define INT32 int32_t
5654#define UINT32 uint32_t
5755
58- #else /* < C99 */
59-
60- #define INT8 signed char
61-
62- #if SIZEOF_SHORT == 2
63- #define INT16 short
64- #elif SIZEOF_INT == 2
65- #define INT16 int
66- #else
67- #error Cannot find required 16-bit integer type
68- #endif
69-
70- #if SIZEOF_SHORT == 4
71- #define INT32 short
72- #elif SIZEOF_INT == 4
73- #define INT32 int
74- #elif SIZEOF_LONG == 4
75- #define INT32 long
76- #else
77- #error Cannot find required 32-bit integer type
78- #endif
79-
80- #define UINT8 unsigned char
81- #define UINT16 unsigned INT16
82- #define UINT32 unsigned INT32
83-
84- #endif /* < C99 */
85-
8656#endif /* not WIN */
8757
8858/* assume IEEE; tweak if necessary (patches are welcome) */
You can’t perform that action at this time.
0 commit comments