diff options
author | Michael Figurnov <mfigurnov@google.com> | 2018-06-07 14:35:07 +0100 |
---|---|---|
committer | Michael Figurnov <mfigurnov@google.com> | 2018-06-07 14:35:07 +0100 |
commit | aa813d417bf89910d9f6944357314fa3a1280e56 (patch) | |
tree | e6d86b2dff391de16e588cb494ea808c5c88ff7e /unsupported/Eigen/src | |
parent | e206f8d4a401fe2060bada4d4b5d92e3bf3b561c (diff) |
Fix compilation of special functions without C99 math.
The commit with Bessel functions i0e and i1e placed the ifdef/endif incorrectly,
causing i0e/i1e to be undefined when EIGEN_HAS_C99_MATH=0. These functions do not
actually require C99 math, so now they are always available.
Diffstat (limited to 'unsupported/Eigen/src')
-rw-r--r-- | unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h index 6c7ac3f3b..293b0597b 100644 --- a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h +++ b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h @@ -1574,6 +1574,8 @@ struct betainc_impl<double> { } }; +#endif // EIGEN_HAS_C99_MATH + /**************************************************************************** * Implementation of Bessel function, based on Cephes * ****************************************************************************/ @@ -1902,8 +1904,6 @@ struct i1e_impl<double> { } }; -#endif // EIGEN_HAS_C99_MATH - } // end namespace internal namespace numext { |