Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
cf2f57f9
Commit
cf2f57f9
authored
Jul 19, 2003
by
Jon Griffiths
Committed by
Alexandre Julliard
Jul 19, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MSVC fixes.
parent
7d75c147
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
winsock.h
include/winsock.h
+2
-2
No files found.
include/winsock.h
View file @
cf2f57f9
...
...
@@ -96,7 +96,7 @@
#ifndef _WINSOCKAPI_
#define _WINSOCKAPI_
#if
defined(__MINGW_H
) && !defined(MSVCRT_BSD_TYPES_DEFINED)
#if
(defined(_MSC_VER) || defined(__MINGW_H)
) && !defined(MSVCRT_BSD_TYPES_DEFINED)
/* MinGW doesn't define the u_xxx types */
typedef
unsigned
char
u_char
;
typedef
unsigned
short
u_short
;
...
...
@@ -497,7 +497,7 @@ inline static u_short __wine_ushort_swap(u_short s)
}
inline
static
u_long
__wine_ulong_swap
(
u_long
l
)
{
return
((
u_long
)
__wine_ushort_swap
(
l
)
<<
16
)
|
__wine_ushort_swap
(
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