Jacek Caban : include: Add fenv.h header.

Alexandre Julliard julliard at winehq.org
Thu Mar 19 16:27:48 CDT 2020


Module: wine
Branch: master
Commit: ec4b4c33f3b46328c886ef96343082c92bb3285d
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=ec4b4c33f3b46328c886ef96343082c92bb3285d

Author: Jacek Caban <jacek at codeweavers.com>
Date:   Thu Mar 19 15:40:26 2020 +0100

include: Add fenv.h header.

Signed-off-by: Jacek Caban <jacek at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 include/Makefile.in   |  1 +
 include/msvcrt/fenv.h | 26 ++++++++++++++++++++++++++
 2 files changed, 27 insertions(+)

diff --git a/include/Makefile.in b/include/Makefile.in
index a3b8774dc0..dc79d2ca24 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 0000000000..20906f38e2
--- /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 <float.h>
+
+#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 */




More information about the wine-cvs mailing list