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
8ecd9afc
Commit
8ecd9afc
authored
Nov 20, 2020
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Avoid msvcrt-specific types in the Unix library interface.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
86b0a633
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
20 deletions
+18
-20
unixlib.c
dlls/msvcrt/unixlib.c
+9
-9
unixlib.h
dlls/msvcrt/unixlib.h
+9
-11
No files found.
dlls/msvcrt/unixlib.c
View file @
8ecd9afc
...
...
@@ -443,7 +443,7 @@ static double CDECL unix_jn(int n, double num)
/*********************************************************************
* ldexp
*/
static
double
CDECL
unix_ldexp
(
double
num
,
MSVCRT_long
exp
)
static
double
CDECL
unix_ldexp
(
double
num
,
int
exp
)
{
return
ldexp
(
num
,
exp
);
}
...
...
@@ -477,7 +477,7 @@ static float CDECL unix_lgammaf(float x)
/*********************************************************************
* llrint
*/
static
MSVCRT_longlong
CDECL
unix_llrint
(
double
x
)
static
__int64
CDECL
unix_llrint
(
double
x
)
{
return
llrint
(
x
);
}
...
...
@@ -485,7 +485,7 @@ static MSVCRT_longlong CDECL unix_llrint(double x)
/*********************************************************************
* llrintf
*/
static
MSVCRT_longlong
CDECL
unix_llrintf
(
float
x
)
static
__int64
CDECL
unix_llrintf
(
float
x
)
{
return
llrintf
(
x
);
}
...
...
@@ -589,7 +589,7 @@ static float CDECL unix_logbf( float x )
/*********************************************************************
* lrint
*/
static
MSVCRT_long
CDECL
unix_lrint
(
double
x
)
static
int
CDECL
unix_lrint
(
double
x
)
{
return
lrint
(
x
);
}
...
...
@@ -597,7 +597,7 @@ static MSVCRT_long CDECL unix_lrint(double x)
/*********************************************************************
* lrintf
*/
static
MSVCRT_long
CDECL
unix_lrintf
(
float
x
)
static
int
CDECL
unix_lrintf
(
float
x
)
{
return
lrintf
(
x
);
}
...
...
@@ -795,7 +795,7 @@ static float CDECL unix_roundf(float x)
/*********************************************************************
* lround
*/
static
MSVCRT_long
CDECL
unix_lround
(
double
x
)
static
int
CDECL
unix_lround
(
double
x
)
{
#ifdef HAVE_LROUND
return
lround
(
x
);
...
...
@@ -807,7 +807,7 @@ static MSVCRT_long CDECL unix_lround(double x)
/*********************************************************************
* lroundf
*/
static
MSVCRT_long
CDECL
unix_lroundf
(
float
x
)
static
int
CDECL
unix_lroundf
(
float
x
)
{
#ifdef HAVE_LROUNDF
return
lroundf
(
x
);
...
...
@@ -819,7 +819,7 @@ static MSVCRT_long CDECL unix_lroundf(float x)
/*********************************************************************
* llround
*/
static
MSVCRT_longlong
CDECL
unix_llround
(
double
x
)
static
__int64
CDECL
unix_llround
(
double
x
)
{
#ifdef HAVE_LLROUND
return
llround
(
x
);
...
...
@@ -831,7 +831,7 @@ static MSVCRT_longlong CDECL unix_llround(double x)
/*********************************************************************
* llroundf
*/
static
MSVCRT_longlong
CDECL
unix_llroundf
(
float
x
)
static
__int64
CDECL
unix_llroundf
(
float
x
)
{
#ifdef HAVE_LLROUNDF
return
llroundf
(
x
);
...
...
dlls/msvcrt/unixlib.h
View file @
8ecd9afc
...
...
@@ -21,8 +21,6 @@
#ifndef __UNIXLIB_H
#define __UNIXLIB_H
#include "msvcrt.h"
struct
unix_funcs
{
double
(
CDECL
*
acosh
)(
double
x
);
...
...
@@ -62,13 +60,13 @@ struct unix_funcs
double
(
CDECL
*
j0
)(
double
num
);
double
(
CDECL
*
j1
)(
double
num
);
double
(
CDECL
*
jn
)(
int
n
,
double
num
);
double
(
CDECL
*
ldexp
)(
double
x
,
MSVCRT_long
exp
);
double
(
CDECL
*
ldexp
)(
double
x
,
int
exp
);
double
(
CDECL
*
lgamma
)(
double
x
);
float
(
CDECL
*
lgammaf
)(
float
x
);
MSVCRT_longlong
(
CDECL
*
llrint
)(
double
x
);
MSVCRT_longlong
(
CDECL
*
llrintf
)(
float
x
);
MSVCRT_longlong
(
CDECL
*
llround
)(
double
x
);
MSVCRT_longlong
(
CDECL
*
llroundf
)(
float
x
);
__int64
(
CDECL
*
llrint
)(
double
x
);
__int64
(
CDECL
*
llrintf
)(
float
x
);
__int64
(
CDECL
*
llround
)(
double
x
);
__int64
(
CDECL
*
llroundf
)(
float
x
);
double
(
CDECL
*
log
)(
double
x
);
float
(
CDECL
*
logf
)(
float
x
);
double
(
CDECL
*
log10
)(
double
x
);
...
...
@@ -79,10 +77,10 @@ struct unix_funcs
float
(
CDECL
*
log2f
)(
float
x
);
double
(
CDECL
*
logb
)(
double
x
);
float
(
CDECL
*
logbf
)(
float
x
);
MSVCRT_long
(
CDECL
*
lrint
)(
double
x
);
MSVCRT_long
(
CDECL
*
lrintf
)(
float
x
);
MSVCRT_long
(
CDECL
*
lround
)(
double
x
);
MSVCRT_long
(
CDECL
*
lroundf
)(
float
x
);
int
(
CDECL
*
lrint
)(
double
x
);
int
(
CDECL
*
lrintf
)(
float
x
);
int
(
CDECL
*
lround
)(
double
x
);
int
(
CDECL
*
lroundf
)(
float
x
);
double
(
CDECL
*
modf
)(
double
x
,
double
*
iptr
);
float
(
CDECL
*
modff
)(
float
x
,
float
*
iptr
);
double
(
CDECL
*
nearbyint
)(
double
num
);
...
...
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