mirror of
https://github.com/cc65/cc65.git
synced 2025-01-11 11:30:13 +00:00
Define integer size macros for lacking systems
Define integer size macros for lacking systems
This commit is contained in:
parent
6bb2d1d5d1
commit
23a8b2c303
@ -57,6 +57,16 @@ typedef size_t uintptr_t;
|
|||||||
typedef ptrdiff_t intmax_t;
|
typedef ptrdiff_t intmax_t;
|
||||||
typedef size_t uintmax_t;
|
typedef size_t uintmax_t;
|
||||||
|
|
||||||
|
#define INT8_MAX (0x7F)
|
||||||
|
#define INT16_MAX (0x7FFF)
|
||||||
|
#define INT32_MAX (0x7FFFFFFF)
|
||||||
|
|
||||||
|
#define INT8_MIN (-INT8_MAX - 1)
|
||||||
|
#define INT16_MIN (-INT16_MAX - 1)
|
||||||
|
|
||||||
|
#define UINT8_MAX (0xFF)
|
||||||
|
#define UINT16_MAX (0xFFFF)
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user