Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Alexey Alyaev
wine
Commits
854c3a87
Commit
854c3a87
authored
15 years ago
by
Alexandre Julliard
Browse files
Options
Downloads
Patches
Plain Diff
dpwsockx: Use standard Win32 types instead of the BSD ones.
parent
b91e5302
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dlls/dpwsockx/dpwsockx_dll.h
+7
-7
7 additions, 7 deletions
dlls/dpwsockx/dpwsockx_dll.h
with
7 additions
and
7 deletions
dlls/dpwsockx/dpwsockx_dll.h
+
7
−
7
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 */
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment