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
4919a76e
Commit
4919a76e
authored
Nov 27, 2006
by
Pierre d'Herbemont
Committed by
Alexandre Julliard
Nov 27, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winsock: Get rid of already disabled WS prefix, thus fix Wine compilation on big-endian.
parent
167b32cc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
winsock.h
include/winsock.h
+7
-7
No files found.
include/winsock.h
View file @
4919a76e
...
...
@@ -516,20 +516,20 @@ int WINAPI __WSAFDIsSet(SOCKET,WS(fd_set)*);
#ifdef WORDS_BIGENDIAN
#define htonl(l) ((
WS(u_long)
)(l))
#define htons(s) ((
WS(u_short)
)(s))
#define ntohl(l) ((
WS(u_long)
)(l))
#define ntohs(s) ((
WS(u_short)
)(s))
#define htonl(l) ((
u_long
)(l))
#define htons(s) ((
u_short
)(s))
#define ntohl(l) ((
u_long
)(l))
#define ntohs(s) ((
u_short
)(s))
#else
/* WORDS_BIGENDIAN */
inline
static
WS
(
u_short
)
__wine_ushort_swap
(
WS
(
u_short
)
s
)
inline
static
u_short
__wine_ushort_swap
(
u_short
s
)
{
return
(
s
>>
8
)
|
(
s
<<
8
);
}
inline
static
WS
(
u_long
)
__wine_ulong_swap
(
WS
(
u_long
)
l
)
inline
static
u_long
__wine_ulong_swap
(
u_long
l
)
{
return
((
WS
(
u_long
))
__wine_ushort_swap
((
WS
(
u_short
))
l
)
<<
16
)
|
__wine_ushort_swap
((
WS
(
u_short
)
)(
l
>>
16
));
return
((
u_long
)
__wine_ushort_swap
((
u_short
)
l
)
<<
16
)
|
__wine_ushort_swap
((
u_short
)(
l
>>
16
));
}
#define htonl(l) __wine_ulong_swap(l)
#define htons(s) __wine_ushort_swap(s)
...
...
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