From eff8b06effbe41fa4881f724ef73e70ef5eebb40 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Fri, 17 Aug 2007 19:51:08 +0100 Subject: Separate out arch-independent parts of stdint.h --- src/arch/i386/include/bits/stdint.h | 21 ++++++++++++++++++++ src/arch/i386/include/stdint.h | 39 ------------------------------------- 2 files changed, 21 insertions(+), 39 deletions(-) create mode 100644 src/arch/i386/include/bits/stdint.h delete mode 100644 src/arch/i386/include/stdint.h (limited to 'src/arch') diff --git a/src/arch/i386/include/bits/stdint.h b/src/arch/i386/include/bits/stdint.h new file mode 100644 index 000000000..a2947cda9 --- /dev/null +++ b/src/arch/i386/include/bits/stdint.h @@ -0,0 +1,21 @@ +#ifndef _BITS_STDINT_H +#define _BITS_STDINT_H + +typedef typeof(sizeof(int)) size_t; +typedef signed long ssize_t; +typedef signed long off_t; + +typedef unsigned char uint8_t; +typedef unsigned short uint16_t; +typedef unsigned long uint32_t; +typedef unsigned long long uint64_t; + +typedef signed char int8_t; +typedef signed short int16_t; +typedef signed long int32_t; +typedef signed long long int64_t; + +typedef unsigned long physaddr_t; +typedef unsigned long intptr_t; + +#endif /* _BITS_STDINT_H */ diff --git a/src/arch/i386/include/stdint.h b/src/arch/i386/include/stdint.h deleted file mode 100644 index 34bea8b40..000000000 --- a/src/arch/i386/include/stdint.h +++ /dev/null @@ -1,39 +0,0 @@ -#ifndef STDINT_H -#define STDINT_H - -typedef typeof(sizeof(int)) size_t; -typedef signed long ssize_t; -typedef signed long off_t; - -typedef unsigned char uint8_t; -typedef unsigned short uint16_t; -typedef unsigned long uint32_t; -typedef unsigned long long uint64_t; - -typedef signed char int8_t; -typedef signed short int16_t; -typedef signed long int32_t; -typedef signed long long int64_t; - -typedef unsigned long physaddr_t; -typedef unsigned long intptr_t; - -typedef int8_t s8; -typedef uint8_t u8; -typedef int16_t s16; -typedef uint16_t u16; -typedef int32_t s32; -typedef uint32_t u32; -typedef int64_t s64; -typedef uint64_t u64; - -typedef int8_t int8; -typedef uint8_t uint8; -typedef int16_t int16; -typedef uint16_t uint16; -typedef int32_t int32; -typedef uint32_t uint32; -typedef int64_t int64; -typedef uint64_t uint64; - -#endif /* STDINT_H */ -- cgit v1.2.3-55-g7522