From ec4b4c33f3b46328c886ef96343082c92bb3285d Mon Sep 17 00:00:00 2001 From: Jacek Caban Date: Thu, 19 Mar 2020 15:40:26 +0100 Subject: [PATCH] include: Add fenv.h header. Signed-off-by: Jacek Caban Signed-off-by: Alexandre Julliard --- include/Makefile.in | 1 + include/msvcrt/fenv.h | 26 ++++++++++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 include/msvcrt/fenv.h diff --git a/include/Makefile.in b/include/Makefile.in index a3b8774dc0e..dc79d2ca248 100644 --- a/include/Makefile.in +++ b/include/Makefile.in @@ -444,6 +444,7 @@ SOURCES = \ msvcrt/eh.h \ msvcrt/errno.h \ msvcrt/fcntl.h \ + msvcrt/fenv.h \ msvcrt/float.h \ msvcrt/fpieee.h \ msvcrt/inttypes.h \ diff --git a/include/msvcrt/fenv.h b/include/msvcrt/fenv.h new file mode 100644 index 00000000000..20906f38e29 --- /dev/null +++ b/include/msvcrt/fenv.h @@ -0,0 +1,26 @@ +/** + * This file has no copyright assigned and is placed in the Public Domain. + * This file is part of the Wine project. + */ + +#ifndef _INC_FENV +#define _INC_FENV + +#include + +#define FE_TONEAREST _RC_NEAR +#define FE_UPWARD _RC_UP +#define FE_DOWNWARD _RC_DOWN +#define FE_TOWARDZERO _RC_CHOP + +#ifdef __cplusplus +extern "C" { +#endif + +_ACRTIMP int __cdecl fesetround(int); + +#ifdef __cplusplus +} +#endif + +#endif /* _INC_FENV */