Kill <machine/_types.h>.
Most of <machine/_types.h> was either unused, wrong, or identical across all 32-/64-bit architectures. I'm not a huge fan of <sys/_types.h> either, but moving the bits we need up into there is a step forward. Bug: 12213562 Change-Id: Id13551c78966e324beee2dd90c5575e37d2a71e6
This commit is contained in:
@@ -32,9 +32,48 @@
|
||||
*/
|
||||
|
||||
#ifndef _SYS__TYPES_H_
|
||||
#define _SYS__TYPES_H_
|
||||
#define _SYS__TYPES_H_
|
||||
|
||||
#include <machine/_types.h>
|
||||
typedef __signed char __int8_t;
|
||||
typedef unsigned char __uint8_t;
|
||||
typedef short __int16_t;
|
||||
typedef unsigned short __uint16_t;
|
||||
typedef int __int32_t;
|
||||
typedef unsigned int __uint32_t;
|
||||
#if __LP64__
|
||||
typedef long __int64_t;
|
||||
typedef unsigned long __uint64_t;
|
||||
#else
|
||||
typedef long long __int64_t;
|
||||
typedef unsigned long long __uint64_t;
|
||||
#endif
|
||||
|
||||
#if __LP64__
|
||||
typedef long __intptr_t;
|
||||
typedef unsigned long __uintptr_t;
|
||||
#else
|
||||
typedef int __intptr_t;
|
||||
typedef unsigned int __uintptr_t;
|
||||
#endif
|
||||
|
||||
#if __LP64__
|
||||
typedef long __time_t;
|
||||
#else
|
||||
typedef int __time_t; /* Historical accident. */
|
||||
#endif
|
||||
|
||||
typedef int __timer_t;
|
||||
|
||||
typedef int __clockid_t;
|
||||
|
||||
#ifndef __cplusplus
|
||||
typedef int __wchar_t;
|
||||
#endif
|
||||
|
||||
typedef double __double_t;
|
||||
typedef float __float_t;
|
||||
|
||||
typedef __builtin_va_list __va_list;
|
||||
|
||||
typedef unsigned long __cpuid_t; /* CPU id */
|
||||
typedef __uint32_t __fixpt_t; /* fixed point number */
|
||||
|
@@ -38,7 +38,6 @@
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
#include <machine/endian.h>
|
||||
#include <machine/_types.h>
|
||||
|
||||
#define _LITTLE_ENDIAN 1234
|
||||
#define _BIG_ENDIAN 4321
|
||||
|
Reference in New Issue
Block a user