Don't define u_int8_t, u_int16_t, etc if sys/types.h has already been included (avoid warning with gcc 3.3)

This commit is contained in:
Laurent Vivier 2006-09-20 14:34:51 +00:00
parent 1bb375da59
commit f7868fb753

View File

@ -7,6 +7,7 @@
#ifndef __MACOS_TYPES_H__ #ifndef __MACOS_TYPES_H__
#define __MACOS_TYPES_H__ #define __MACOS_TYPES_H__
#ifndef _SYS_TYPES_H
#ifdef ARCH_M68K #ifdef ARCH_M68K
typedef unsigned char u_int8_t; typedef unsigned char u_int8_t;
typedef signed char int8_t; typedef signed char int8_t;
@ -15,6 +16,7 @@ typedef signed short int16_t;
typedef unsigned int u_int32_t; typedef unsigned int u_int32_t;
typedef signed int int32_t; typedef signed int int32_t;
#endif /* ARCH_M68K */ #endif /* ARCH_M68K */
#endif /* _SYS_TYPES_H */
typedef int16_t OSErr; typedef int16_t OSErr;
typedef unsigned long FourCharCode; typedef unsigned long FourCharCode;