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
04ecd184
Commit
04ecd184
authored
Jan 29, 2002
by
Francois Gouget
Committed by
Alexandre Julliard
Jan 29, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Avoid conflict with htonl & friends in Winelib on FreeBSD.
parent
f8850243
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
6 deletions
+15
-6
winsock.h
include/winsock.h
+15
-6
No files found.
include/winsock.h
View file @
04ecd184
...
@@ -42,10 +42,16 @@ extern "C" {
...
@@ -42,10 +42,16 @@ extern "C" {
*/
*/
#ifndef __WINE_USE_MSVCRT
#ifndef __WINE_USE_MSVCRT
/* Get the u_xxx types from the Unix headers. They will do and
/* Get the u_xxx types from the Unix headers. They will do and doing it
* doing it this way will avoid redefinitions.
* this way will avoid redefinitions. But on FreeBSD we may get macros
* and prototypes for htonl & co. This means the functions will not be
* called because of the macros. So this should not harm us too much unless
* we try to define our own prototypes (different calling convention).
*/
*/
# include <sys/types.h>
# include <sys/types.h>
# ifndef htonl
# define WS_DEFINE_HTONL
# endif
/* htonl */
#else
#else
/* Since we are using the MSVCRT headers, we must define the u_xxx
/* Since we are using the MSVCRT headers, we must define the u_xxx
* types ourselves.
* types ourselves.
...
@@ -54,6 +60,7 @@ typedef unsigned char u_char;
...
@@ -54,6 +60,7 @@ typedef unsigned char u_char;
typedef
unsigned
char
u_short
;
typedef
unsigned
char
u_short
;
typedef
unsigned
int
u_int
;
typedef
unsigned
int
u_int
;
typedef
unsigned
long
u_long
;
typedef
unsigned
long
u_long
;
# define WS_DEFINE_HTONL
#endif
/* __WINE_USE_MSVCRT */
#endif
/* __WINE_USE_MSVCRT */
...
@@ -902,14 +909,10 @@ struct WS(servent)* WINAPI WS(getservbyname)(const char*,const char*);
...
@@ -902,14 +909,10 @@ struct WS(servent)* WINAPI WS(getservbyname)(const char*,const char*);
struct
WS
(
servent
)
*
WINAPI
WS
(
getservbyport
)(
int
,
const
char
*
);
struct
WS
(
servent
)
*
WINAPI
WS
(
getservbyport
)(
int
,
const
char
*
);
int
WINAPI
WS
(
getsockname
)(
SOCKET
,
struct
WS
(
sockaddr
)
*
,
int
*
);
int
WINAPI
WS
(
getsockname
)(
SOCKET
,
struct
WS
(
sockaddr
)
*
,
int
*
);
int
WINAPI
WS
(
getsockopt
)(
SOCKET
,
int
,
int
,
char
*
,
int
*
);
int
WINAPI
WS
(
getsockopt
)(
SOCKET
,
int
,
int
,
char
*
,
int
*
);
u_long
WINAPI
WS
(
htonl
)(
u_long
);
u_short
WINAPI
WS
(
htons
)(
u_short
);
unsigned
long
WINAPI
WS
(
inet_addr
)(
const
char
*
);
unsigned
long
WINAPI
WS
(
inet_addr
)(
const
char
*
);
char
*
WINAPI
WS
(
inet_ntoa
)(
struct
WS
(
in_addr
));
char
*
WINAPI
WS
(
inet_ntoa
)(
struct
WS
(
in_addr
));
int
WINAPI
WS
(
ioctlsocket
)(
SOCKET
,
long
,
u_long
*
);
int
WINAPI
WS
(
ioctlsocket
)(
SOCKET
,
long
,
u_long
*
);
int
WINAPI
WS
(
listen
)(
SOCKET
,
int
);
int
WINAPI
WS
(
listen
)(
SOCKET
,
int
);
u_long
WINAPI
WS
(
ntohl
)(
u_long
);
u_short
WINAPI
WS
(
ntohs
)(
u_short
);
int
WINAPI
WS
(
recv
)(
SOCKET
,
char
*
,
int
,
int
);
int
WINAPI
WS
(
recv
)(
SOCKET
,
char
*
,
int
,
int
);
int
WINAPI
WS
(
recvfrom
)(
SOCKET
,
char
*
,
int
,
int
,
struct
WS
(
sockaddr
)
*
,
int
*
);
int
WINAPI
WS
(
recvfrom
)(
SOCKET
,
char
*
,
int
,
int
,
struct
WS
(
sockaddr
)
*
,
int
*
);
int
WINAPI
WS
(
send
)(
SOCKET
,
const
char
*
,
int
,
int
);
int
WINAPI
WS
(
send
)(
SOCKET
,
const
char
*
,
int
,
int
);
...
@@ -918,6 +921,12 @@ int WINAPI WS(setsockopt)(SOCKET,int,int,const char*,int);
...
@@ -918,6 +921,12 @@ int WINAPI WS(setsockopt)(SOCKET,int,int,const char*,int);
int
WINAPI
WS
(
shutdown
)(
SOCKET
,
int
);
int
WINAPI
WS
(
shutdown
)(
SOCKET
,
int
);
SOCKET
WINAPI
WS
(
socket
)(
int
,
int
,
int
);
SOCKET
WINAPI
WS
(
socket
)(
int
,
int
,
int
);
#ifdef WS_DEFINE_HTONL
u_long
WINAPI
WS
(
htonl
)(
u_long
);
u_short
WINAPI
WS
(
htons
)(
u_short
);
u_long
WINAPI
WS
(
ntohl
)(
u_long
);
u_short
WINAPI
WS
(
ntohs
)(
u_short
);
#endif
#if defined(__WINE__) || !defined(__WINE_WINSOCK2__)
#if defined(__WINE__) || !defined(__WINE_WINSOCK2__)
/* Stuff specific to winsock.h */
/* Stuff specific to winsock.h */
...
...
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