diff options
| author | David E. O'Brien <obrien@FreeBSD.org> | 2001-05-16 22:21:43 +0000 |
|---|---|---|
| committer | David E. O'Brien <obrien@FreeBSD.org> | 2001-05-16 22:21:43 +0000 |
| commit | 1123bf8862d1819f174fd76849ea712f2f94b221 (patch) | |
| tree | 088bab0bd7aa098cf2401e19883c4bd3ee3891af /sys/arm | |
| parent | 1317e200a8a0f8e928439981b991cb7079c2b5c1 (diff) | |
Notes
Diffstat (limited to 'sys/arm')
| -rw-r--r-- | sys/arm/include/ansi.h | 43 |
1 files changed, 24 insertions, 19 deletions
diff --git a/sys/arm/include/ansi.h b/sys/arm/include/ansi.h index 5c5780d9b0ad7..deac37c662e1c 100644 --- a/sys/arm/include/ansi.h +++ b/sys/arm/include/ansi.h @@ -34,8 +34,29 @@ * $FreeBSD$ */ -#ifndef _ANSI_H_ -#define _ANSI_H_ +#ifndef _MACHINE_ANSI_H_ +#define _MACHINE_ANSI_H_ + +/* + * Internal names for basic integral types. Omit the typedef if + * not possible for a machine/compiler combination. + */ +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; +typedef long long __int64_t; +typedef unsigned long long __uint64_t; + +typedef int __intptr_t; +typedef unsigned int __uintptr_t; + +/* + * We define this here since both <stddef.h> and <sys/types.h> needs it. + */ +#define __offsetof(type, field) ((size_t)(&((type *)0)->field)) /* * Types which are fundamental to the implementation and may appear in @@ -102,20 +123,4 @@ #define _BSD_CLK_TCK_ 100 #define _BSD_CLOCKS_PER_SEC_ 100 -/* - * Internal names for basic integral types. Omit the typedef if - * not possible for a machine/compiler combination. - */ -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; -typedef long long __int64_t; -typedef unsigned long long __uint64_t; - -typedef int __intptr_t; -typedef unsigned int __uintptr_t; - -#endif /* _ANSI_H_ */ +#endif /* _MACHINE_ANSI_H_ */ |
