From: Jacek Caban <jacek@codeweavers.com> MSVC uses long double for float_t when x87 math is used on i386. --- include/msvcrt/math.h | 3 +++ libs/musl/src/internal/libm.h | 3 --- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/msvcrt/math.h b/include/msvcrt/math.h index 977f2a9a1e0..3a1081bf39d 100644 --- a/include/msvcrt/math.h +++ b/include/msvcrt/math.h @@ -45,6 +45,9 @@ struct _complex }; #endif /* _COMPLEX_DEFINED */ +typedef float float_t; +typedef double double_t; + _ACRTIMP double __cdecl sin(double); _ACRTIMP double __cdecl cos(double); _ACRTIMP double __cdecl tan(double); diff --git a/libs/musl/src/internal/libm.h b/libs/musl/src/internal/libm.h index e24e10edaa6..d49cc478bd3 100644 --- a/libs/musl/src/internal/libm.h +++ b/libs/musl/src/internal/libm.h @@ -7,9 +7,6 @@ #include <errno.h> #include <features.h> -typedef float float_t; -typedef double double_t; - typedef double matherr_t(int, const char *, double, double, double); hidden double math_error(int type, const char *name, double arg1, double arg2, double retval); -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/10129