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
854c3a87
Commit
854c3a87
authored
Apr 03, 2010
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dpwsockx: Use standard Win32 types instead of the BSD ones.
parent
b91e5302
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
dpwsockx_dll.h
dlls/dpwsockx/dpwsockx_dll.h
+7
-7
No files found.
dlls/dpwsockx/dpwsockx_dll.h
View file @
854c3a87
...
...
@@ -47,13 +47,13 @@ typedef struct tagDPWS_DATA
#ifdef WORDS_BIGENDIAN
static
inline
u_short
__dpws_ushort_swap
(
u_short
s
)
static
inline
USHORT
__dpws_ushort_swap
(
USHORT
s
)
{
return
(
s
>>
8
)
|
(
s
<<
8
);
}
static
inline
u_long
__dpws_ulong_swap
(
u_long
l
)
static
inline
ULONG
__dpws_ulong_swap
(
ULONG
l
)
{
return
((
u_long
)
__dpws_ushort_swap
((
u_short
)
l
)
<<
16
)
|
__dpws_ushort_swap
((
u_short
)(
l
>>
16
));
return
((
ULONG
)
__dpws_ushort_swap
((
USHORT
)
l
)
<<
16
)
|
__dpws_ushort_swap
((
USHORT
)(
l
>>
16
));
}
#define dpws_letohl(l) __dpws_ulong_swap(l)
...
...
@@ -63,10 +63,10 @@ static inline u_long __dpws_ulong_swap(u_long l)
#else
/* WORDS_BIGENDIAN */
#define dpws_letohl(l) ((
u_long
)(l))
#define dpws_letohs(s) ((
u_short
)(s))
#define dpws_htolel(l) ((
u_long
)(l))
#define dpws_htoles(s) ((
u_short
)(s))
#define dpws_letohl(l) ((
ULONG
)(l))
#define dpws_letohs(s) ((
USHORT
)(s))
#define dpws_htolel(l) ((
ULONG
)(l))
#define dpws_htoles(s) ((
USHORT
)(s))
#endif
/* WORDS_BIGENDIAN */
...
...
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