Yet another hack to try to make this file compile in all

circumstances.
oldstable
Alexandre Julliard 2003-04-04 19:32:18 +00:00
parent 961afa2ab6
commit 15f0ac352b
1 changed files with 17 additions and 16 deletions

View File

@ -26,22 +26,8 @@
# endif
#endif
#ifndef _WINSOCKAPI_
#define _WINSOCKAPI_
/*
* Setup phase
*/
#ifdef USE_WS_PREFIX
# define WS(x) WS_##x
#else
# define WS(x) x
#endif
#ifdef __cplusplus
extern "C" {
#endif /* defined(__cplusplus) */
#ifndef __WINE_WINSOCKAPI_STDLIB_H
#define __WINE_WINSOCKAPI_STDLIB_H
/*
* This section defines the items that conflict with the Unix headers.
@ -110,12 +96,17 @@ extern "C" {
# include <stdlib.h>
#endif /* !USE_WS_PREFIX */
#endif /* __WINE_WINSOCKAPI_STDLIB_H */
#ifndef __WINESRC__
# include "windows.h"
#else
# include "windef.h"
#endif
#ifndef _WINSOCKAPI_
#define _WINSOCKAPI_
#if defined(__MINGW_H) && !defined(MSVCRT_BSD_TYPES_DEFINED)
/* MinGW doesn't define the u_xxx types */
typedef unsigned char u_char;
@ -124,6 +115,16 @@ typedef unsigned int u_int;
typedef unsigned long u_long;
#endif
#ifdef USE_WS_PREFIX
# define WS(x) WS_##x
#else
# define WS(x) x
#endif
#ifdef __cplusplus
extern "C" {
#endif /* defined(__cplusplus) */
/* proper 4-byte packing */
#include "pshpack4.h"