Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
f208e9ef
Commit
f208e9ef
authored
Jun 17, 2013
by
André Hentschel
Committed by
Alexandre Julliard
Jun 18, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ws2_32: Don't use autoheader styled define.
parent
c5e9479b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
18 deletions
+18
-18
socket.c
dlls/ws2_32/socket.c
+18
-18
No files found.
dlls/ws2_32/socket.c
View file @
f208e9ef
...
...
@@ -98,7 +98,7 @@
#ifdef HAVE_NETIPX_IPX_H
# include <netipx/ipx.h>
# define HA
VE
_IPX
# define HA
S
_IPX
#elif defined(HAVE_LINUX_IPX_H)
# ifdef HAVE_ASM_TYPES_H
# include <asm/types.h>
...
...
@@ -107,7 +107,7 @@
# include <linux/types.h>
# endif
# include <linux/ipx.h>
# define HA
VE
_IPX
# define HA
S
_IPX
#endif
#ifdef HAVE_LINUX_IRDA_H
...
...
@@ -115,7 +115,7 @@
# include <linux/types.h>
# endif
# include <linux/irda.h>
# define HA
VE
_IRDA
# define HA
S
_IRDA
#endif
#ifdef HAVE_POLL_H
...
...
@@ -153,7 +153,7 @@
#include "wine/exception.h"
#include "wine/unicode.h"
#ifdef HA
VE
_IPX
#ifdef HA
S
_IPX
# include "wsnwlink.h"
#endif
...
...
@@ -438,7 +438,7 @@ static const int ws_af_map[][2] =
MAP_OPTION
(
AF_UNSPEC
),
MAP_OPTION
(
AF_INET
),
MAP_OPTION
(
AF_INET6
),
#ifdef HA
VE
_IPX
#ifdef HA
S
_IPX
MAP_OPTION
(
AF_IPX
),
#endif
#ifdef AF_IRDA
...
...
@@ -1218,11 +1218,11 @@ static inline BOOL supported_pf(int pf)
case
WS_AF_INET
:
case
WS_AF_INET6
:
return
TRUE
;
#ifdef HA
VE
_IPX
#ifdef HA
S
_IPX
case
WS_AF_IPX
:
return
TRUE
;
#endif
#ifdef HA
VE
_IRDA
#ifdef HA
S
_IRDA
case
WS_AF_IRDA
:
return
TRUE
;
#endif
...
...
@@ -1244,7 +1244,7 @@ static unsigned int ws_sockaddr_ws2u(const struct WS_sockaddr* wsaddr, int wsadd
switch
(
wsaddr
->
sa_family
)
{
#ifdef HA
VE
_IPX
#ifdef HA
S
_IPX
case
WS_AF_IPX
:
{
const
struct
WS_sockaddr_ipx
*
wsipx
=
(
const
struct
WS_sockaddr_ipx
*
)
wsaddr
;
...
...
@@ -1302,7 +1302,7 @@ static unsigned int ws_sockaddr_ws2u(const struct WS_sockaddr* wsaddr, int wsadd
memcpy
(
&
uin
->
sin_addr
,
&
win
->
sin_addr
,
4
);
/* 4 bytes = 32 address bits */
break
;
}
#ifdef HA
VE
_IRDA
#ifdef HA
S
_IRDA
case
WS_AF_IRDA
:
{
struct
sockaddr_irda
*
uin
=
(
struct
sockaddr_irda
*
)
uaddr
;
const
SOCKADDR_IRDA
*
win
=
(
const
SOCKADDR_IRDA
*
)
wsaddr
;
...
...
@@ -1335,12 +1335,12 @@ static unsigned int ws_sockaddr_ws2u(const struct WS_sockaddr* wsaddr, int wsadd
case
sizeof
(
struct
WS_sockaddr_in
):
uaddrlen
=
sizeof
(
struct
sockaddr_in
);
break
;
#ifdef HA
VE
_IPX
#ifdef HA
S
_IPX
case
sizeof
(
struct
WS_sockaddr_ipx
):
uaddrlen
=
sizeof
(
struct
sockaddr_ipx
);
break
;
#endif
#ifdef HA
VE
_IRDA
#ifdef HA
S
_IRDA
case
sizeof
(
SOCKADDR_IRDA
):
uaddrlen
=
sizeof
(
struct
sockaddr_irda
);
break
;
...
...
@@ -1364,7 +1364,7 @@ static BOOL is_sockaddr_bound(const struct sockaddr *uaddr, int uaddrlen)
{
switch
(
uaddr
->
sa_family
)
{
#ifdef HA
VE
_IPX
#ifdef HA
S
_IPX
case
AF_IPX
:
FIXME
(
"don't know how to tell if IPX socket is bound, assuming it is!
\n
"
);
return
TRUE
;
...
...
@@ -1396,7 +1396,7 @@ static int ws_sockaddr_u2ws(const struct sockaddr* uaddr, struct WS_sockaddr* ws
switch
(
uaddr
->
sa_family
)
{
#ifdef HA
VE
_IPX
#ifdef HA
S
_IPX
case
AF_IPX
:
{
const
struct
sockaddr_ipx
*
uipx
=
(
const
struct
sockaddr_ipx
*
)
uaddr
;
...
...
@@ -1436,7 +1436,7 @@ static int ws_sockaddr_u2ws(const struct sockaddr* uaddr, struct WS_sockaddr* ws
}
break
;
#endif
#ifdef HA
VE
_IRDA
#ifdef HA
S
_IRDA
case
AF_IRDA
:
{
const
struct
sockaddr_irda
*
uin
=
(
const
struct
sockaddr_irda
*
)
uaddr
;
SOCKADDR_IRDA
*
win
=
(
SOCKADDR_IRDA
*
)
wsaddr
;
...
...
@@ -1772,7 +1772,7 @@ static int WS2_send( int fd, struct ws2_async *wsa )
return
-
1
;
}
#if defined(HA
VE
_IPX) && defined(SOL_IPX)
#if defined(HA
S
_IPX) && defined(SOL_IPX)
if
(
wsa
->
addr
->
sa_family
==
WS_AF_IPX
)
{
struct
sockaddr_ipx
*
uipx
=
(
struct
sockaddr_ipx
*
)
hdr
.
msg_name
;
...
...
@@ -2806,7 +2806,7 @@ INT WINAPI WS_getsockopt(SOCKET s, INT level,
return
SOCKET_ERROR
;
}
/* end switch(optname) */
}
/* end case WS_SOL_SOCKET */
#ifdef HA
VE
_IPX
#ifdef HA
S
_IPX
case
NSPROTO_IPX
:
{
struct
WS_sockaddr_ipx
addr
;
...
...
@@ -2872,7 +2872,7 @@ INT WINAPI WS_getsockopt(SOCKET s, INT level,
}
/* end case NSPROTO_IPX */
#endif
#ifdef HA
VE
_IRDA
#ifdef HA
S
_IRDA
case
WS_SOL_IRLMP
:
switch
(
optname
)
{
...
...
@@ -4342,7 +4342,7 @@ int WINAPI WS_setsockopt(SOCKET s, int level, int optname,
}
break
;
/* case WS_SOL_SOCKET */
#ifdef HA
VE
_IPX
#ifdef HA
S
_IPX
case
NSPROTO_IPX
:
switch
(
optname
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment