Skip to content

Commit 89cd48d

Browse files
afaerberStefan Reinauer
authored andcommitted
Haiku does not have asm/types.h. It does have [u]int*_t but not
in sys/types.h. Use C99/POSIX stdint.h types for all platforms. v1 -> v2: * Don't just use stdint.h in place of sys/types.h in the Sun/Haiku code path. Suggested by Stefan. Signed-off-by: Andreas Färber <andreas.faerber@web.de> Cc: Stefan Reinauer <stepan@openbios.org> git-svn-id: svn://coreboot.org/openbios/trunk/fcode-utils-devel@863 f158a5a8-5612-0410-a976-696ce0be7e32
1 parent 3aec3b5 commit 89cd48d

1 file changed

Lines changed: 1 addition & 29 deletions

File tree

shared/types.h

Lines changed: 1 addition & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -39,22 +39,8 @@
3939
*
4040
**************************************************************************** */
4141

42-
#if defined(__APPLE__)
42+
#include <stdint.h>
4343

44-
#include <sys/types.h>
45-
46-
typedef int8_t s8;
47-
typedef u_int8_t u8;
48-
49-
typedef int16_t s16;
50-
typedef u_int16_t u16;
51-
52-
typedef int32_t s32;
53-
typedef u_int32_t u32;
54-
55-
#elif defined(__sun__)
56-
57-
#include <sys/types.h>
5844

5945
typedef int8_t s8;
6046
typedef uint8_t u8;
@@ -68,20 +54,6 @@ typedef uint32_t u32;
6854
typedef int64_t s64;
6955
typedef uint64_t u64;
7056

71-
#else
72-
73-
#include <asm/types.h>
74-
75-
typedef __s8 s8;
76-
typedef __u8 u8;
77-
78-
typedef __s16 s16;
79-
typedef __u16 u16;
80-
81-
typedef __s32 s32;
82-
typedef __u32 u32;
83-
84-
#endif
8557

8658
#ifdef FALSE /* Hack for AIX. */
8759
#undef FALSE

0 commit comments

Comments
 (0)