1
0
mirror of https://github.com/cc65/cc65.git synced 2024-12-23 19:29:37 +00:00

Define integer size macros for lacking systems

Define integer size macros for lacking systems
This commit is contained in:
Tevo 2020-09-03 00:06:31 -03:00 committed by Oliver Schmidt
parent 6bb2d1d5d1
commit 23a8b2c303

View File

@ -57,6 +57,16 @@ typedef size_t uintptr_t;
typedef ptrdiff_t intmax_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