From f7868fb7530c5592cf036170a50ba3f07c036b2f Mon Sep 17 00:00:00 2001 From: Laurent Vivier Date: Wed, 20 Sep 2006 14:34:51 +0000 Subject: [PATCH] Don't define u_int8_t, u_int16_t, etc if sys/types.h has already been included (avoid warning with gcc 3.3) --- libmacos/macos/types.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libmacos/macos/types.h b/libmacos/macos/types.h index 4b152a4..16878ac 100644 --- a/libmacos/macos/types.h +++ b/libmacos/macos/types.h @@ -7,6 +7,7 @@ #ifndef __MACOS_TYPES_H__ #define __MACOS_TYPES_H__ +#ifndef _SYS_TYPES_H #ifdef ARCH_M68K typedef unsigned char u_int8_t; typedef signed char int8_t; @@ -15,6 +16,7 @@ typedef signed short int16_t; typedef unsigned int u_int32_t; typedef signed int int32_t; #endif /* ARCH_M68K */ +#endif /* _SYS_TYPES_H */ typedef int16_t OSErr; typedef unsigned long FourCharCode;