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
76883a8c
Commit
76883a8c
authored
Mar 17, 2003
by
Dimitrie O. Paun
Committed by
Alexandre Julliard
Mar 17, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Define the u_{char,short,int,long} in msvcrt/sys/types.h for Unix
compatibility (needed by winsock.h as well).
parent
9c2c2881
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
19 deletions
+15
-19
types.h
include/msvcrt/sys/types.h
+8
-0
winsock.h
include/winsock.h
+7
-19
No files found.
include/msvcrt/sys/types.h
View file @
76883a8c
...
...
@@ -55,6 +55,14 @@ typedef long MSVCRT(time_t);
#endif
#ifndef USE_MSVCRT_PREFIX
#ifndef MSVCRT_BSD_TYPES_DEFINED
typedef
unsigned
char
u_char
;
typedef
unsigned
short
u_short
;
typedef
unsigned
int
u_int
;
typedef
unsigned
long
u_long
;
#define MSVCRT_BSD_TYPES_DEFINED
#endif
#define dev_t _dev_t
#define ino_t _ino_t
#define mode_t _mode_t
...
...
include/winsock.h
View file @
76883a8c
...
...
@@ -57,27 +57,15 @@ extern "C" {
* This section defines the items that conflict with the Unix headers.
*/
#ifndef __WINE_USE_MSVCRT
/* Get the u_xxx types from the Unix headers. They will do and doing it
* 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>
# if defined(USE_WS_PREFIX) || !defined(htonl)
# define WS_DEFINE_HTONL
# endif
/* htonl */
#else
/* Since we are using the MSVCRT headers, we must define the u_xxx
* types ourselves.
#include <sys/types.h>
/* 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).
*/
typedef
unsigned
char
u_char
;
typedef
unsigned
short
u_short
;
typedef
unsigned
int
u_int
;
typedef
unsigned
long
u_long
;
#if defined(USE_WS_PREFIX) || !defined(htonl)
# define WS_DEFINE_HTONL
#endif
/*
__WINE_USE_MSVCRT
*/
#endif
/*
htonl
*/
...
...
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