Skip to content

Commit b3cd2c8

Browse files
author
Stefan Reinauer
committed
fix types on Mac OS X
git-svn-id: svn://coreboot.org/openbios/fcode-utils@88 f158a5a8-5612-0410-a976-696ce0be7e32
1 parent ce7e241 commit b3cd2c8

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

shared/types.h

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,19 @@
3939
*
4040
**************************************************************************** */
4141

42+
#if defined(__ppc__) && defined(__APPLE__)
43+
#include <sys/types.h>
44+
45+
typedef int8_t s8;
46+
typedef u_int8_t u8;
47+
48+
typedef int16_t s16;
49+
typedef u_int16_t u16;
50+
51+
typedef int32_t s32;
52+
typedef u_int32_t u32;
53+
54+
#else
4255

4356
#include <asm/types.h>
4457

@@ -50,6 +63,7 @@ typedef __u16 u16;
5063

5164
typedef __s32 s32;
5265
typedef __u32 u32;
66+
#endif
5367

5468
#ifdef FALSE /* Hack for AIX. */
5569
#undef FALSE

0 commit comments

Comments
 (0)