msvcrt: Avoid msvcrt-specific types in the Unix library interface.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
86b0a633c6
commit
8ecd9afc89
|
@ -443,7 +443,7 @@ static double CDECL unix_jn(int n, double num)
|
||||||
/*********************************************************************
|
/*********************************************************************
|
||||||
* ldexp
|
* ldexp
|
||||||
*/
|
*/
|
||||||
static double CDECL unix_ldexp(double num, MSVCRT_long exp)
|
static double CDECL unix_ldexp(double num, int exp)
|
||||||
{
|
{
|
||||||
return ldexp( num, exp );
|
return ldexp( num, exp );
|
||||||
}
|
}
|
||||||
|
@ -477,7 +477,7 @@ static float CDECL unix_lgammaf(float x)
|
||||||
/*********************************************************************
|
/*********************************************************************
|
||||||
* llrint
|
* llrint
|
||||||
*/
|
*/
|
||||||
static MSVCRT_longlong CDECL unix_llrint(double x)
|
static __int64 CDECL unix_llrint(double x)
|
||||||
{
|
{
|
||||||
return llrint(x);
|
return llrint(x);
|
||||||
}
|
}
|
||||||
|
@ -485,7 +485,7 @@ static MSVCRT_longlong CDECL unix_llrint(double x)
|
||||||
/*********************************************************************
|
/*********************************************************************
|
||||||
* llrintf
|
* llrintf
|
||||||
*/
|
*/
|
||||||
static MSVCRT_longlong CDECL unix_llrintf(float x)
|
static __int64 CDECL unix_llrintf(float x)
|
||||||
{
|
{
|
||||||
return llrintf(x);
|
return llrintf(x);
|
||||||
}
|
}
|
||||||
|
@ -589,7 +589,7 @@ static float CDECL unix_logbf( float x )
|
||||||
/*********************************************************************
|
/*********************************************************************
|
||||||
* lrint
|
* lrint
|
||||||
*/
|
*/
|
||||||
static MSVCRT_long CDECL unix_lrint(double x)
|
static int CDECL unix_lrint(double x)
|
||||||
{
|
{
|
||||||
return lrint(x);
|
return lrint(x);
|
||||||
}
|
}
|
||||||
|
@ -597,7 +597,7 @@ static MSVCRT_long CDECL unix_lrint(double x)
|
||||||
/*********************************************************************
|
/*********************************************************************
|
||||||
* lrintf
|
* lrintf
|
||||||
*/
|
*/
|
||||||
static MSVCRT_long CDECL unix_lrintf(float x)
|
static int CDECL unix_lrintf(float x)
|
||||||
{
|
{
|
||||||
return lrintf(x);
|
return lrintf(x);
|
||||||
}
|
}
|
||||||
|
@ -795,7 +795,7 @@ static float CDECL unix_roundf(float x)
|
||||||
/*********************************************************************
|
/*********************************************************************
|
||||||
* lround
|
* lround
|
||||||
*/
|
*/
|
||||||
static MSVCRT_long CDECL unix_lround(double x)
|
static int CDECL unix_lround(double x)
|
||||||
{
|
{
|
||||||
#ifdef HAVE_LROUND
|
#ifdef HAVE_LROUND
|
||||||
return lround(x);
|
return lround(x);
|
||||||
|
@ -807,7 +807,7 @@ static MSVCRT_long CDECL unix_lround(double x)
|
||||||
/*********************************************************************
|
/*********************************************************************
|
||||||
* lroundf
|
* lroundf
|
||||||
*/
|
*/
|
||||||
static MSVCRT_long CDECL unix_lroundf(float x)
|
static int CDECL unix_lroundf(float x)
|
||||||
{
|
{
|
||||||
#ifdef HAVE_LROUNDF
|
#ifdef HAVE_LROUNDF
|
||||||
return lroundf(x);
|
return lroundf(x);
|
||||||
|
@ -819,7 +819,7 @@ static MSVCRT_long CDECL unix_lroundf(float x)
|
||||||
/*********************************************************************
|
/*********************************************************************
|
||||||
* llround
|
* llround
|
||||||
*/
|
*/
|
||||||
static MSVCRT_longlong CDECL unix_llround(double x)
|
static __int64 CDECL unix_llround(double x)
|
||||||
{
|
{
|
||||||
#ifdef HAVE_LLROUND
|
#ifdef HAVE_LLROUND
|
||||||
return llround(x);
|
return llround(x);
|
||||||
|
@ -831,7 +831,7 @@ static MSVCRT_longlong CDECL unix_llround(double x)
|
||||||
/*********************************************************************
|
/*********************************************************************
|
||||||
* llroundf
|
* llroundf
|
||||||
*/
|
*/
|
||||||
static MSVCRT_longlong CDECL unix_llroundf(float x)
|
static __int64 CDECL unix_llroundf(float x)
|
||||||
{
|
{
|
||||||
#ifdef HAVE_LLROUNDF
|
#ifdef HAVE_LLROUNDF
|
||||||
return llroundf(x);
|
return llroundf(x);
|
||||||
|
|
|
@ -21,8 +21,6 @@
|
||||||
#ifndef __UNIXLIB_H
|
#ifndef __UNIXLIB_H
|
||||||
#define __UNIXLIB_H
|
#define __UNIXLIB_H
|
||||||
|
|
||||||
#include "msvcrt.h"
|
|
||||||
|
|
||||||
struct unix_funcs
|
struct unix_funcs
|
||||||
{
|
{
|
||||||
double (CDECL *acosh)(double x);
|
double (CDECL *acosh)(double x);
|
||||||
|
@ -62,13 +60,13 @@ struct unix_funcs
|
||||||
double (CDECL *j0)(double num);
|
double (CDECL *j0)(double num);
|
||||||
double (CDECL *j1)(double num);
|
double (CDECL *j1)(double num);
|
||||||
double (CDECL *jn)(int n, 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);
|
double (CDECL *lgamma)(double x);
|
||||||
float (CDECL *lgammaf)(float x);
|
float (CDECL *lgammaf)(float x);
|
||||||
MSVCRT_longlong (CDECL *llrint)(double x);
|
__int64 (CDECL *llrint)(double x);
|
||||||
MSVCRT_longlong (CDECL *llrintf)(float x);
|
__int64 (CDECL *llrintf)(float x);
|
||||||
MSVCRT_longlong (CDECL *llround)(double x);
|
__int64 (CDECL *llround)(double x);
|
||||||
MSVCRT_longlong (CDECL *llroundf)(float x);
|
__int64 (CDECL *llroundf)(float x);
|
||||||
double (CDECL *log)(double x);
|
double (CDECL *log)(double x);
|
||||||
float (CDECL *logf)(float x);
|
float (CDECL *logf)(float x);
|
||||||
double (CDECL *log10)(double x);
|
double (CDECL *log10)(double x);
|
||||||
|
@ -79,10 +77,10 @@ struct unix_funcs
|
||||||
float (CDECL *log2f)(float x);
|
float (CDECL *log2f)(float x);
|
||||||
double (CDECL *logb)(double x);
|
double (CDECL *logb)(double x);
|
||||||
float (CDECL *logbf)(float x);
|
float (CDECL *logbf)(float x);
|
||||||
MSVCRT_long (CDECL *lrint)(double x);
|
int (CDECL *lrint)(double x);
|
||||||
MSVCRT_long (CDECL *lrintf)(float x);
|
int (CDECL *lrintf)(float x);
|
||||||
MSVCRT_long (CDECL *lround)(double x);
|
int (CDECL *lround)(double x);
|
||||||
MSVCRT_long (CDECL *lroundf)(float x);
|
int (CDECL *lroundf)(float x);
|
||||||
double (CDECL *modf)(double x, double *iptr);
|
double (CDECL *modf)(double x, double *iptr);
|
||||||
float (CDECL *modff)(float x, float *iptr);
|
float (CDECL *modff)(float x, float *iptr);
|
||||||
double (CDECL *nearbyint)(double num);
|
double (CDECL *nearbyint)(double num);
|
||||||
|
|
Loading…
Reference in New Issue