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
baaaa58b
Commit
baaaa58b
authored
Dec 09, 2008
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
include: Fix a few compiler warnings for the Mingw64 build.
parent
fc4f3efb
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
7 deletions
+10
-7
debug.h
include/wine/debug.h
+1
-1
library.h
include/wine/library.h
+5
-5
winnt.h
include/winnt.h
+2
-0
winsock.h
include/winsock.h
+2
-1
No files found.
include/wine/debug.h
View file @
baaaa58b
...
...
@@ -186,7 +186,7 @@ static inline const char *wine_dbgstr_w( const WCHAR *s )
static
inline
const
char
*
wine_dbgstr_guid
(
const
GUID
*
id
)
{
if
(
!
id
)
return
"(null)"
;
if
(
!
((
ULONG_PTR
)
id
>>
16
))
return
wine_dbg_sprintf
(
"<guid-0x%04
lx>"
,
(
ULONG_PTR
)
id
&
0xffff
);
if
(
!
((
ULONG_PTR
)
id
>>
16
))
return
wine_dbg_sprintf
(
"<guid-0x%04
hx>"
,
(
WORD
)(
ULONG_PTR
)
id
);
return
wine_dbg_sprintf
(
"{%08x-%04x-%04x-%02x%02x-%02x%02x%02x%02x%02x%02x}"
,
id
->
Data1
,
id
->
Data2
,
id
->
Data3
,
id
->
Data4
[
0
],
id
->
Data4
[
1
],
id
->
Data4
[
2
],
id
->
Data4
[
3
],
...
...
include/wine/library.h
View file @
baaaa58b
...
...
@@ -132,9 +132,9 @@ WINE_LDT_EXTERN struct __wine_ldt_copy
/* helper functions to manipulate the LDT_ENTRY structure */
static
inline
void
wine_ldt_set_base
(
LDT_ENTRY
*
ent
,
const
void
*
base
)
{
ent
->
BaseLow
=
(
WORD
)(
unsigned
long
)
base
;
ent
->
HighWord
.
Bits
.
BaseMid
=
(
BYTE
)((
unsigned
long
)
base
>>
16
);
ent
->
HighWord
.
Bits
.
BaseHi
=
(
BYTE
)((
unsigned
long
)
base
>>
24
);
ent
->
BaseLow
=
(
WORD
)(
ULONG_PTR
)
base
;
ent
->
HighWord
.
Bits
.
BaseMid
=
(
BYTE
)((
ULONG_PTR
)
base
>>
16
);
ent
->
HighWord
.
Bits
.
BaseHi
=
(
BYTE
)((
ULONG_PTR
)
base
>>
24
);
}
static
inline
void
wine_ldt_set_limit
(
LDT_ENTRY
*
ent
,
unsigned
int
limit
)
{
...
...
@@ -145,8 +145,8 @@ static inline void wine_ldt_set_limit( LDT_ENTRY *ent, unsigned int limit )
static
inline
void
*
wine_ldt_get_base
(
const
LDT_ENTRY
*
ent
)
{
return
(
void
*
)(
ent
->
BaseLow
|
(
unsigned
long
)
ent
->
HighWord
.
Bits
.
BaseMid
<<
16
|
(
unsigned
long
)
ent
->
HighWord
.
Bits
.
BaseHi
<<
24
);
(
ULONG_PTR
)
ent
->
HighWord
.
Bits
.
BaseMid
<<
16
|
(
ULONG_PTR
)
ent
->
HighWord
.
Bits
.
BaseHi
<<
24
);
}
static
inline
unsigned
int
wine_ldt_get_limit
(
const
LDT_ENTRY
*
ent
)
{
...
...
include/winnt.h
View file @
baaaa58b
...
...
@@ -246,6 +246,7 @@ extern "C" {
/* C99 unaligned support */
#ifndef UNALIGNED
#if defined(_MSC_VER) && (defined(_M_MRX000) || defined(_M_ALPHA) || defined(_M_PPC) || defined(_M_IA64) || defined(_M_AMD64))
# define UNALIGNED __unaligned
# ifdef _WIN64
...
...
@@ -257,6 +258,7 @@ extern "C" {
# define UNALIGNED
# define UNALIGNED64
#endif
#endif
/* Alignment macros */
...
...
include/winsock.h
View file @
baaaa58b
...
...
@@ -90,6 +90,7 @@
# undef FD_SET
# undef FD_ZERO
# undef FD_ISSET
# undef _TIMEVAL_DEFINED
# define WS_DEFINE_SELECT
# endif
/* FD_CLR */
...
...
@@ -120,7 +121,7 @@ typedef unsigned long WS_u_long;
#else
typedef
unsigned
int
WS_u_long
;
#endif
#elif (defined(_MSC_VER) || defined(__MINGW
_H
) || defined(__WATCOMC__)) && !defined(_BSDTYPES_DEFINED)
#elif (defined(_MSC_VER) || defined(__MINGW
32__
) || defined(__WATCOMC__)) && !defined(_BSDTYPES_DEFINED)
/* MinGW doesn't define the u_xxx types */
typedef
unsigned
char
u_char
;
typedef
unsigned
short
u_short
;
...
...
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