include: Open Watcom compatibility (Fix _BSDTYPES_DEFINED typo).

This commit is contained in:
Detlef Riekenberg 2006-09-20 22:26:44 +02:00 committed by Alexandre Julliard
parent c84c47842e
commit ca788bbc26
2 changed files with 4 additions and 3 deletions

View File

@ -52,12 +52,12 @@ typedef long time_t;
#define _TIME_T_DEFINED
#endif
#ifndef _BSD_TYPES_DEFINED
#ifndef _BSDTYPES_DEFINED
typedef unsigned char u_char;
typedef unsigned short u_short;
typedef unsigned int u_int;
typedef unsigned long u_long;
#define _BSD_TYPES_DEFINED
#define _BSDTYPES_DEFINED
#endif
#define dev_t _dev_t

View File

@ -110,12 +110,13 @@
#ifndef _WINSOCKAPI_
#define _WINSOCKAPI_
#if (defined(_MSC_VER) || defined(__MINGW_H)) && !defined(_BSD_TYPES_DEFINED)
#if (defined(_MSC_VER) || defined(__MINGW_H) || defined(__WATCOMC__)) && !defined(_BSDTYPES_DEFINED)
/* MinGW doesn't define the u_xxx types */
typedef unsigned char u_char;
typedef unsigned short u_short;
typedef unsigned int u_int;
typedef unsigned long u_long;
#define _BSDTYPES_DEFINED
#endif
#ifdef USE_WS_PREFIX