diff options
author | obrien <obrien@FreeBSD.org> | 2001-05-16 22:21:43 +0000 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 2001-05-16 22:21:43 +0000 |
commit | 9e804492abbf2ff2087fc952f4b0b98a6e3f8ba7 (patch) | |
tree | 4bd7c843825e39ddad15d6b709d50b00674e9921 /sys/ia64 | |
parent | 047f94e139274ab9ae2ec877bada1ddcc4756cc5 (diff) | |
download | FreeBSD-src-9e804492abbf2ff2087fc952f4b0b98a6e3f8ba7.zip FreeBSD-src-9e804492abbf2ff2087fc952f4b0b98a6e3f8ba7.tar.gz |
Move the int typedefs to the top so they can be used in defining other types.
Ensure every platform has __offsetof.
Make multiple inclusion detection consistent with other
<platform>/include/*.h files.
Diffstat (limited to 'sys/ia64')
-rw-r--r-- | sys/ia64/include/ansi.h | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/sys/ia64/include/ansi.h b/sys/ia64/include/ansi.h index 456f13b..622e8bb 100644 --- a/sys/ia64/include/ansi.h +++ b/sys/ia64/include/ansi.h @@ -35,8 +35,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 __int64_t; +typedef unsigned long __uint64_t; + +typedef long __intptr_t; +typedef unsigned long __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 @@ -98,25 +119,4 @@ #define _BSD_CLK_TCK_ 100 #define _BSD_CLOCKS_PER_SEC_ 100 -/* - * We define this here since both <stddef.h> and <sys/types.h> needs it. - */ -#define __offsetof(type, field) ((size_t)(&((type *)0)->field)) - -/* - * 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 __int64_t; -typedef unsigned long __uint64_t; - -typedef long __intptr_t; -typedef unsigned long __uintptr_t; - -#endif /* _ANSI_H_ */ +#endif /* _MACHINE_ANSI_H_ */ |