Add mswsock.h, move relevant definitions to this header.

This commit is contained in:
Francois Gouget 2002-05-22 01:51:41 +00:00 committed by Alexandre Julliard
parent cc2ee7636d
commit ac70c40fb6
4 changed files with 49 additions and 8 deletions

View File

@ -24,6 +24,7 @@
#include <winerror.h> #include <winerror.h>
#undef USE_WS_PREFIX #undef USE_WS_PREFIX
#include <winsock2.h> #include <winsock2.h>
#include <mswsock.h>
#define MAX_CLIENTS 4 /* Max number of clients */ #define MAX_CLIENTS 4 /* Max number of clients */
#define NUM_TESTS 2 /* Number of tests performed */ #define NUM_TESTS 2 /* Number of tests performed */

View File

@ -81,6 +81,7 @@ INSTALLED_INCLUDES = \
msvcrt/time.h \ msvcrt/time.h \
msvcrt/wchar.h \ msvcrt/wchar.h \
msvcrt/wctype.h \ msvcrt/wctype.h \
mswsock.h \
nb30.h \ nb30.h \
nspapi.h \ nspapi.h \
ntsecapi.h \ ntsecapi.h \

46
include/mswsock.h Normal file
View File

@ -0,0 +1,46 @@
/*
* Copyright (C) the Wine project
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#ifndef _MSWSOCK_
#define _MSWSOCK_
#ifndef USE_WS_PREFIX
#define SO_OPENTYPE 0x7008
#define SO_SYNCHRONOUS_ALERT 0x10
#define SO_SYNCHRONOUS_NONALERT 0x20
#else
#define WS_SO_OPENTYPE 0x7008
#define WS_SO_SYNCHRONOUS_ALERT 0x10
#define WS_SO_SYNCHRONOUS_NONALERT 0x20
#endif
#ifdef __cplusplus
extern "C" {
#endif /* defined(__cplusplus) */
int WINAPI WSARecvEx(SOCKET,char*,int,int*);
#ifdef __cplusplus
}
#endif
#endif /* _MSWSOCK_ */

View File

@ -614,9 +614,6 @@ typedef struct WS(WSAData)
#define SO_ERROR 0x1007 #define SO_ERROR 0x1007
#define SO_TYPE 0x1008 #define SO_TYPE 0x1008
#define SO_OPENTYPE 0x7008
#define SO_SYNCHRONOUS_ALERT 0x10
#define SO_SYNCHRONOUS_NONALERT 0x20
#define IOCPARM_MASK 0x7f #define IOCPARM_MASK 0x7f
#define IOC_VOID 0x20000000 #define IOC_VOID 0x20000000
@ -650,10 +647,6 @@ typedef struct WS(WSAData)
#define WS_SO_ERROR 0x1007 #define WS_SO_ERROR 0x1007
#define WS_SO_TYPE 0x1008 #define WS_SO_TYPE 0x1008
#define WS_SO_OPENTYPE 0x7008
#define WS_SO_SYNCHRONOUS_ALERT 0x10
#define WS_SO_SYNCHRONOUS_NONALERT 0x20
#define WS_IOCPARM_MASK 0x7f #define WS_IOCPARM_MASK 0x7f
#define WS_IOC_VOID 0x20000000 #define WS_IOC_VOID 0x20000000
#define WS_IOC_OUT 0x40000000 #define WS_IOC_OUT 0x40000000
@ -946,7 +939,7 @@ u_short WINAPI WS(ntohs)(u_short);
#if defined(__WINE__) || !defined(__WINE_WINSOCK2__) #if defined(__WINE__) || !defined(__WINE_WINSOCK2__)
/* Stuff specific to winsock.h */ /* Stuff specific to winsock.h */
int WINAPI WSARecvEx(SOCKET,char*,int,int*); #include "mswsock.h"
#endif /* __WINE_WINSOCK2__ */ #endif /* __WINE_WINSOCK2__ */
#endif /* !defined(__WINE_WINSOCK2__) || WS_API_PROTOTYPES */ #endif /* !defined(__WINE_WINSOCK2__) || WS_API_PROTOTYPES */