[PATCH] msvcr120: Add fesetenv stub.

Fabian Maurer dark.shadow4 at web.de
Mon Feb 6 11:57:17 CST 2017


Signed-off-by: Fabian Maurer <dark.shadow4 at web.de>
---
 .../api-ms-win-crt-runtime-l1-1-0.spec                           | 2 +-
 dlls/msvcr120/msvcr120.spec                                      | 2 +-
 dlls/msvcr120_app/msvcr120_app.spec                              | 2 +-
 dlls/msvcrt/math.c                                               | 9 +++++++++
 dlls/ucrtbase/ucrtbase.spec                                      | 2 +-
 5 files changed, 13 insertions(+), 4 deletions(-)

diff --git a/dlls/api-ms-win-crt-runtime-l1-1-0/api-ms-win-crt-runtime-l1-1-0.spec b/dlls/api-ms-win-crt-runtime-l1-1-0/api-ms-win-crt-runtime-l1-1-0.spec
index 3dc6b20acc..6cea910574 100644
--- a/dlls/api-ms-win-crt-runtime-l1-1-0/api-ms-win-crt-runtime-l1-1-0.spec
+++ b/dlls/api-ms-win-crt-runtime-l1-1-0/api-ms-win-crt-runtime-l1-1-0.spec
@@ -92,7 +92,7 @@
 @ stub fegetexceptflag
 @ stub fegetround
 @ stub feholdexcept
-@ stub fesetenv
+@ cdecl fesetenv(ptr) ucrtbase.fesetenv
 @ stub fesetexceptflag
 @ stub fesetround
 @ stub fetestexcept
diff --git a/dlls/msvcr120/msvcr120.spec b/dlls/msvcr120/msvcr120.spec
index fa9eef3ab9..62481c08cf 100644
--- a/dlls/msvcr120/msvcr120.spec
+++ b/dlls/msvcr120/msvcr120.spec
@@ -2151,7 +2151,7 @@
 @ cdecl feof(ptr) MSVCRT_feof
 @ stub feraiseexcept
 @ cdecl ferror(ptr) MSVCRT_ferror
-@ stub fesetenv
+@ cdecl fesetenv(ptr) MSVCRT_fesetenv
 @ stub fesetexceptflag
 @ stub fesetround
 @ stub fetestexcept
diff --git a/dlls/msvcr120_app/msvcr120_app.spec b/dlls/msvcr120_app/msvcr120_app.spec
index 1b6e5a8f46..a74a1404ac 100644
--- a/dlls/msvcr120_app/msvcr120_app.spec
+++ b/dlls/msvcr120_app/msvcr120_app.spec
@@ -1817,7 +1817,7 @@
 @ cdecl feof(ptr) msvcr120.feof
 @ stub feraiseexcept
 @ cdecl ferror(ptr) msvcr120.ferror
-@ stub fesetenv
+@ cdecl fesetenv(ptr) msvcr120.fesetenv
 @ stub fesetexceptflag
 @ stub fesetround
 @ stub fetestexcept
diff --git a/dlls/msvcrt/math.c b/dlls/msvcrt/math.c
index 55e2efc8f5..3fb7612d95 100644
--- a/dlls/msvcrt/math.c
+++ b/dlls/msvcrt/math.c
@@ -1210,6 +1210,15 @@ int CDECL MSVCRT_fegetenv(MSVCRT_fenv_t *env)
 }
 
 /*********************************************************************
+ *              fesetenv (MSVCR120.@)
+ */
+int CDECL MSVCRT_fesetenv(const MSVCRT_fenv_t *env)
+{
+    FIXME("(%p) stub\n", env);
+    return 0;
+}
+
+/*********************************************************************
  *		__fpe_flt_rounds (UCRTBASE.@)
  */
 int CDECL __fpe_flt_rounds(void)
diff --git a/dlls/ucrtbase/ucrtbase.spec b/dlls/ucrtbase/ucrtbase.spec
index 85f196baa7..760269821b 100644
--- a/dlls/ucrtbase/ucrtbase.spec
+++ b/dlls/ucrtbase/ucrtbase.spec
@@ -2293,7 +2293,7 @@
 @ stub feholdexcept
 @ cdecl feof(ptr) MSVCRT_feof
 @ cdecl ferror(ptr) MSVCRT_ferror
-@ stub fesetenv
+@ cdecl fesetenv(ptr) MSVCRT_fesetenv
 @ stub fesetexceptflag
 @ stub fesetround
 @ stub fetestexcept
-- 
2.11.1




More information about the wine-patches mailing list