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
d20c21dd
Commit
d20c21dd
authored
Dec 09, 2011
by
Francois Gouget
Committed by
Alexandre Julliard
Dec 09, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
include: Eliminate redundancy between winsock.h and inaddr.h.
parent
c63496ac
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
28 deletions
+9
-28
inaddr.h
include/inaddr.h
+7
-0
winsock.h
include/winsock.h
+2
-28
No files found.
include/inaddr.h
View file @
d20c21dd
...
...
@@ -48,6 +48,13 @@ typedef struct WS(in_addr)
#define s_lh S_un.S_un_b.s_b3
#define s_impno S_un.S_un_b.s_b4
#define s_imp S_un.S_un_w.s_w2
#else
#define WS_s_addr S_un.S_addr
#define WS_s_net S_un.S_un_b.s_b1
#define WS_s_host S_un.S_un_b.s_b2
#define WS_s_lh S_un.S_un_b.s_b3
#define WS_s_impno S_un.S_un_b.s_b4
#define WS_s_imp S_un.S_un_w.s_w2
#endif
/* USE_WS_PREFIX */
#endif
/* __INADDR_H__ */
include/winsock.h
View file @
d20c21dd
...
...
@@ -116,6 +116,8 @@
#ifndef _WINSOCKAPI_
#define _WINSOCKAPI_
#include <inaddr.h>
#ifdef USE_WS_PREFIX
typedef
unsigned
char
WS_u_char
;
typedef
unsigned
short
WS_u_short
;
...
...
@@ -591,34 +593,6 @@ static inline ULONG __wine_ulong_swap(ULONG l)
#define WS_INADDR_NONE 0xffffffff
#endif
/* USE_WS_PREFIX */
typedef
struct
WS
(
in_addr
)
{
union
{
struct
{
WS
(
u_char
)
s_b1
,
s_b2
,
s_b3
,
s_b4
;
}
S_un_b
;
struct
{
WS
(
u_short
)
s_w1
,
s_w2
;
}
S_un_w
;
ULONG
S_addr
;
}
S_un
;
#ifndef USE_WS_PREFIX
#define s_addr S_un.S_addr
#define s_host S_un.S_un_b.s_b2
#define s_net S_un.S_un_b.s_b1
#define s_imp S_un.S_un_w.s_w2
#define s_impno S_un.S_un_b.s_b4
#define s_lh S_un.S_un_b.s_b3
#else
#define WS_s_addr S_un.S_addr
#define WS_s_host S_un.S_un_b.s_b2
#define WS_s_net S_un.S_un_b.s_b1
#define WS_s_imp S_un.S_un_w.s_w2
#define WS_s_impno S_un.S_un_b.s_b4
#define WS_s_lh S_un.S_un_b.s_b3
#endif
/* USE_WS_PREFIX */
}
IN_ADDR
,
*
PIN_ADDR
,
*
LPIN_ADDR
;
typedef
struct
WS
(
sockaddr_in
)
{
short
sin_family
;
...
...
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