File tree 2 files changed +5
-30
lines changed
2 files changed +5
-30
lines changed Original file line number Diff line number Diff line change @@ -68,6 +68,11 @@ Saving JPEG 2000 CMYK images
68
68
69
69
With OpenJPEG 2.5.3 or later, Pillow can now save CMYK images as JPEG 2000 files.
70
70
71
+ Minimum C version
72
+ ^^^^^^^^^^^^^^^^^
73
+
74
+ C99 is now the minimum version of C required to compile Pillow from source.
75
+
71
76
zlib-ng in wheels
72
77
^^^^^^^^^^^^^^^^^
73
78
Original file line number Diff line number Diff line change 44
44
defines their own types with the same names, so we need to be able to undef
45
45
ours before including the JPEG code. */
46
46
47
- #if __STDC_VERSION__ >= 199901L /* C99+ */
48
-
49
47
#include <stdint.h>
50
48
51
49
#define INT8 int8_t
55
53
#define INT32 int32_t
56
54
#define UINT32 uint32_t
57
55
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
-
86
56
#endif /* not WIN */
87
57
88
58
/* assume IEEE; tweak if necessary (patches are welcome) */
You can’t perform that action at this time.
0 commit comments