Skip to content

Commit f91b111

Browse files
committed
Removed pre-C99 definitions
1 parent c3fac1d commit f91b111

1 file changed

Lines changed: 0 additions & 30 deletions

File tree

src/libImaging/ImPlatform.h

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,6 @@
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
@@ -55,34 +53,6 @@
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) */

0 commit comments

Comments
 (0)