mirror of
https://gitlab.kitware.com/vtk/vtk-m
synced 2024-10-05 09:59:12 +00:00
Merge topic 'fix-gcc-compuile-error-on-mac'
af65a4e63 Fix compile error when using GCC on macOS Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Kenneth Moreland <morelandkd@ornl.gov> Merge-request: !2722
This commit is contained in:
commit
9352374039
@ -36,7 +36,7 @@
|
||||
|
||||
#include <math.h>
|
||||
|
||||
#ifdef VTKM_GCC
|
||||
#if defined(VTKM_GCC) && !defined(__APPLE__)
|
||||
#include <fenv.h>
|
||||
#endif
|
||||
|
||||
@ -118,7 +118,7 @@ namespace testing
|
||||
inline void FloatingPointExceptionTrapEnable()
|
||||
{
|
||||
// Turn on floating point exception trapping where available
|
||||
#ifdef VTKM_GCC
|
||||
#if defined(VTKM_GCC) && !defined(__APPLE__)
|
||||
feenableexcept(FE_DIVBYZERO | FE_OVERFLOW | FE_INVALID);
|
||||
#endif
|
||||
}
|
||||
@ -126,7 +126,7 @@ inline void FloatingPointExceptionTrapEnable()
|
||||
inline void FloatingPointExceptionTrapDisable()
|
||||
{
|
||||
// Turn on floating point exception trapping where available
|
||||
#ifdef VTKM_GCC
|
||||
#if defined(VTKM_GCC) && !defined(__APPLE__)
|
||||
fedisableexcept(FE_DIVBYZERO | FE_OVERFLOW | FE_INVALID);
|
||||
#endif
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user