include: Open Watcom compatibility (Fix _BSDTYPES_DEFINED typo).
This commit is contained in:
parent
c84c47842e
commit
ca788bbc26
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue