mescc: Mes C Library: Support gcc-4.6.4: Add stdint [U]SHRT macros.

* include/stdint.h (SHRT_MAX, SHRT_MIN, USHRT_MAX, USHRT_MIN): New
macro.
This commit is contained in:
Jan Nieuwenhuizen 2019-02-01 09:29:39 +01:00
parent 471f47273e
commit 8303a676a1
No known key found for this signature in database
GPG Key ID: F3C1A0D9C1D65273
1 changed files with 5 additions and 0 deletions

View File

@ -104,6 +104,11 @@ typedef long uintptr_t;
#define INT_MIN -2147483648
#define INT_MAX 2147483647
#define SHRT_MAX INT16_MAX
#define SHRT_MIN INT16_MIN
#define USHRT_MAX UINT16_MAX
#define USHRT_MIN UINT16_MIN
#if __i386__ || __arm__
#define LONG_MIN INT_MIN
#define LONG_MAX INT_MAX