Skip to content
Snippets Groups Projects
Commit eeef9102 authored by Adrien Stucky's avatar Adrien Stucky Committed by Kitware Robot
Browse files

Merge topic 'hdf5-emsctipten-compatibility'


a311936b fixed vtkFloatingPointExceptions in case target doesn't implement it

Acked-by: default avatarKitware Robot <kwrobot@kitware.com>
Tested-by: default avatarbuildbot <buildbot@kitware.com>
Reviewed-by: default avatarJaswant Panchumarti (Kitware) <jaswant.panchumarti@kitware.com>
Merge-request: !10569
parents 275d36d1 a311936b
No related merge requests found
......@@ -44,7 +44,7 @@ void vtkFloatingPointExceptions::Enable()
// enable floating point exceptions on MSVC
_controlfp(_EM_DENORMAL | _EM_UNDERFLOW | _EM_INEXACT, _MCW_EM);
#endif //_MSC_VER
#if defined(VTK_USE_FENV)
#if defined(VTK_USE_FENV) && FE_ALL_EXCEPT != 0
// This should work on all platforms
feenableexcept(FE_DIVBYZERO | FE_INVALID);
// Set the signal handler
......@@ -63,7 +63,7 @@ void vtkFloatingPointExceptions::Disable()
_EM_INVALID | _EM_DENORMAL | _EM_ZERODIVIDE | _EM_OVERFLOW | _EM_UNDERFLOW | _EM_INEXACT,
_MCW_EM);
#endif //_MSC_VER
#if defined(VTK_USE_FENV)
#if defined(VTK_USE_FENV) && FE_ALL_EXCEPT != 0
fedisableexcept(FE_DIVBYZERO | FE_INVALID);
#endif
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment