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:
parent
afc922d1e2
commit
096939b819
|
@ -55,10 +55,10 @@ typedef unsigned short uint16_t;
|
||||||
typedef short int16_t;
|
typedef short int16_t;
|
||||||
typedef unsigned uint32_t;
|
typedef unsigned uint32_t;
|
||||||
typedef int int32_t;
|
typedef int int32_t;
|
||||||
#if __SIZEOF_LONG_LONG__
|
#if __SIZEOF_LONG_LONG__ == 8
|
||||||
typedef unsigned long long uint64_t;
|
typedef unsigned long long uint64_t;
|
||||||
typedef long long int64_t;
|
typedef long long int64_t;
|
||||||
#endif // __SIZEOF_LONG_LONG__
|
#endif // __SIZEOF_LONG_LONG__ == 8
|
||||||
|
|
||||||
typedef int intmax_t;
|
typedef int intmax_t;
|
||||||
typedef unsigned uintmax_t;
|
typedef unsigned uintmax_t;
|
||||||
|
|
|
@ -69,11 +69,13 @@ typedef unsigned gid_t;
|
||||||
typedef unsigned long ino_t;
|
typedef unsigned long ino_t;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if __SIZEOF_LONG_LONG__ == 8
|
||||||
#ifndef __MES_INO64_T
|
#ifndef __MES_INO64_T
|
||||||
#define __MES_INO64_T
|
#define __MES_INO64_T
|
||||||
#undef ino64_t
|
#undef ino64_t
|
||||||
typedef unsigned long long ino64_t;
|
typedef unsigned long long ino64_t;
|
||||||
#endif
|
#endif
|
||||||
|
#endif // __SIZEOF_LONG_LONG__ == 8
|
||||||
|
|
||||||
#if !defined (__MES_INTPTR_T) && !defined (__intptr_t_defined)
|
#if !defined (__MES_INTPTR_T) && !defined (__intptr_t_defined)
|
||||||
#define __MES_INTPTR_T
|
#define __MES_INTPTR_T
|
||||||
|
@ -90,11 +92,13 @@ typedef unsigned long uintptr_t;
|
||||||
typedef long off_t;
|
typedef long off_t;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if __SIZEOF_LONG_LONG__ == 8
|
||||||
#ifndef __MES_OFF64_T
|
#ifndef __MES_OFF64_T
|
||||||
#define __MES_OFF64_T
|
#define __MES_OFF64_T
|
||||||
#undef off64_t
|
#undef off64_t
|
||||||
typedef unsigned long long off64_t;
|
typedef unsigned long long off64_t;
|
||||||
#endif
|
#endif
|
||||||
|
#endif // __SIZEOF_LONG_LONG__ == 8
|
||||||
|
|
||||||
#ifndef __MES_PID_T
|
#ifndef __MES_PID_T
|
||||||
#define __MES_PID_T
|
#define __MES_PID_T
|
||||||
|
|
Loading…
Reference in a new issue