Commit ac70c40f authored by Francois Gouget's avatar Francois Gouget Committed by Alexandre Julliard

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

parent cc2ee763
......@@ -24,6 +24,7 @@
#include <winerror.h>
#undef USE_WS_PREFIX
#include <winsock2.h>
#include <mswsock.h>
#define MAX_CLIENTS 4 /* Max number of clients */
#define NUM_TESTS 2 /* Number of tests performed */
......
......@@ -81,6 +81,7 @@ INSTALLED_INCLUDES = \
msvcrt/time.h \
msvcrt/wchar.h \
msvcrt/wctype.h \
mswsock.h \
nb30.h \
nspapi.h \
ntsecapi.h \
......
/*
* 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_ */
......@@ -614,9 +614,6 @@ typedef struct WS(WSAData)
#define SO_ERROR 0x1007
#define SO_TYPE 0x1008
#define SO_OPENTYPE 0x7008
#define SO_SYNCHRONOUS_ALERT 0x10
#define SO_SYNCHRONOUS_NONALERT 0x20
#define IOCPARM_MASK 0x7f
#define IOC_VOID 0x20000000
......@@ -650,10 +647,6 @@ typedef struct WS(WSAData)
#define WS_SO_ERROR 0x1007
#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_IOC_VOID 0x20000000
#define WS_IOC_OUT 0x40000000
......@@ -946,7 +939,7 @@ u_short WINAPI WS(ntohs)(u_short);
#if defined(__WINE__) || !defined(__WINE_WINSOCK2__)
/* Stuff specific to winsock.h */
int WINAPI WSARecvEx(SOCKET,char*,int,int*);
#include "mswsock.h"
#endif /* __WINE_WINSOCK2__ */
#endif /* !defined(__WINE_WINSOCK2__) || WS_API_PROTOTYPES */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment