mescc: define int64_t and uint64_t only if it's possible to define them as

exactly 64 bits.

* include/stdint.h[__SIZEOF_LONG_LONG__ != 8]: Remove typedefs for int64_t,
uint16_t.
This commit is contained in:
Danny Milosavljevic 2020-11-25 19:46:40 +01:00 committed by Jan (janneke) Nieuwenhuizen
parent afc922d1e2
commit 096939b819
No known key found for this signature in database
GPG Key ID: F3C1A0D9C1D65273
2 changed files with 6 additions and 2 deletions

View File

@ -55,10 +55,10 @@ typedef unsigned short uint16_t;
typedef short int16_t;
typedef unsigned uint32_t;
typedef int int32_t;
#if __SIZEOF_LONG_LONG__
#if __SIZEOF_LONG_LONG__ == 8
typedef unsigned long long uint64_t;
typedef long long int64_t;
#endif // __SIZEOF_LONG_LONG__
#endif // __SIZEOF_LONG_LONG__ == 8
typedef int intmax_t;
typedef unsigned uintmax_t;

View File

@ -69,11 +69,13 @@ typedef unsigned gid_t;
typedef unsigned long ino_t;
#endif
#if __SIZEOF_LONG_LONG__ == 8
#ifndef __MES_INO64_T
#define __MES_INO64_T
#undef ino64_t
typedef unsigned long long ino64_t;
#endif
#endif // __SIZEOF_LONG_LONG__ == 8
#if !defined (__MES_INTPTR_T) && !defined (__intptr_t_defined)
#define __MES_INTPTR_T
@ -90,11 +92,13 @@ typedef unsigned long uintptr_t;
typedef long off_t;
#endif
#if __SIZEOF_LONG_LONG__ == 8
#ifndef __MES_OFF64_T
#define __MES_OFF64_T
#undef off64_t
typedef unsigned long long off64_t;
#endif
#endif // __SIZEOF_LONG_LONG__ == 8
#ifndef __MES_PID_T
#define __MES_PID_T