msvcr120: Add feraiseexcept implementation.
Signed-off-by: Piotr Caban <piotr@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
cef4c8c38a
commit
0f721c2f00
|
@ -2149,7 +2149,7 @@
|
||||||
@ cdecl fegetround()
|
@ cdecl fegetround()
|
||||||
@ stub feholdexcept
|
@ stub feholdexcept
|
||||||
@ cdecl feof(ptr)
|
@ cdecl feof(ptr)
|
||||||
@ stub feraiseexcept
|
@ cdecl feraiseexcept(long)
|
||||||
@ cdecl ferror(ptr)
|
@ cdecl ferror(ptr)
|
||||||
@ cdecl fesetenv(ptr)
|
@ cdecl fesetenv(ptr)
|
||||||
@ cdecl fesetexceptflag(ptr long)
|
@ cdecl fesetexceptflag(ptr long)
|
||||||
|
|
|
@ -1815,7 +1815,7 @@
|
||||||
@ cdecl fegetround() msvcr120.fegetround
|
@ cdecl fegetround() msvcr120.fegetround
|
||||||
@ stub feholdexcept
|
@ stub feholdexcept
|
||||||
@ cdecl feof(ptr) msvcr120.feof
|
@ cdecl feof(ptr) msvcr120.feof
|
||||||
@ stub feraiseexcept
|
@ cdecl feraiseexcept(long) msvcr120.feraiseexcept
|
||||||
@ cdecl ferror(ptr) msvcr120.ferror
|
@ cdecl ferror(ptr) msvcr120.ferror
|
||||||
@ cdecl fesetenv(ptr) msvcr120.fesetenv
|
@ cdecl fesetenv(ptr) msvcr120.fesetenv
|
||||||
@ cdecl fesetexceptflag(ptr long) msvcr120.fesetexceptflag
|
@ cdecl fesetexceptflag(ptr long) msvcr120.fesetexceptflag
|
||||||
|
|
|
@ -2261,6 +2261,18 @@ int CDECL fesetexceptflag(const fexcept_t *status, int excepts)
|
||||||
return fesetenv(&env);
|
return fesetenv(&env);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*********************************************************************
|
||||||
|
* feraiseexcept (MSVCR120.@)
|
||||||
|
*/
|
||||||
|
int CDECL feraiseexcept(int flags)
|
||||||
|
{
|
||||||
|
fenv_t env;
|
||||||
|
|
||||||
|
fegetenv(&env);
|
||||||
|
env._Fe_stat |= (flags & FE_ALL_EXCEPT);
|
||||||
|
return fesetenv(&env);
|
||||||
|
}
|
||||||
|
|
||||||
/*********************************************************************
|
/*********************************************************************
|
||||||
* feclearexcept (MSVCR120.@)
|
* feclearexcept (MSVCR120.@)
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue