Enable EIGEN_HAS_C99_MATH when building with the latest version of Visual Studio

This commit is contained in:
Benoit Steiner 2016-11-18 14:18:34 -08:00
parent 110b7f8d9f
commit 8649e16c2a

View File

@ -380,7 +380,8 @@
#if EIGEN_MAX_CPP_VER>=11 && \ #if EIGEN_MAX_CPP_VER>=11 && \
((defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901)) \ ((defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901)) \
|| (defined(__GNUC__) && defined(_GLIBCXX_USE_C99)) \ || (defined(__GNUC__) && defined(_GLIBCXX_USE_C99)) \
|| (defined(_LIBCPP_VERSION) && !defined(_MSC_VER))) || (defined(_LIBCPP_VERSION) && !defined(_MSC_VER)) \
|| (EIGEN_COMP_MSVC >= 1900))
#define EIGEN_HAS_C99_MATH 1 #define EIGEN_HAS_C99_MATH 1
#else #else
#define EIGEN_HAS_C99_MATH 0 #define EIGEN_HAS_C99_MATH 0