aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/Core/util/Macros.h
diff options
context:
space:
mode:
authorGravatar Benoit Steiner <benoit.steiner.goog@gmail.com>2015-12-10 13:52:05 -0800
committerGravatar Benoit Steiner <benoit.steiner.goog@gmail.com>2015-12-10 13:52:05 -0800
commitb820b097b870f96538f87862bb3cf22d2b3f4b3b (patch)
treef9706eaa207d96ec0f13ef8ac4c55e586c40ad6e /Eigen/src/Core/util/Macros.h
parent8314962ce2ce5e7cd8c591b7a0a7039abd83f5c6 (diff)
Created EIGEN_HAS_C99_MATH define as Gael suggested.
Diffstat (limited to 'Eigen/src/Core/util/Macros.h')
-rw-r--r--Eigen/src/Core/util/Macros.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/Eigen/src/Core/util/Macros.h b/Eigen/src/Core/util/Macros.h
index 8def69610..d375c77dd 100644
--- a/Eigen/src/Core/util/Macros.h
+++ b/Eigen/src/Core/util/Macros.h
@@ -341,6 +341,13 @@
#define EIGEN_HAVE_RVALUE_REFERENCES
#endif
+// Does the compiler support C99?
+#if (defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901)) \
+ || (defined(__GNUC__) && defined(_GLIBCXX_USE_C99)) \
+ || (defined(_LIBCPP_VERSION) && !defined(_MSC_VER))
+#define EIGEN_HAS_C99_MATH 1
+#endif
+
// Does the compiler support result_of?
#if (__has_feature(cxx_lambdas) || (defined(__cplusplus) && __cplusplus >= 201103L))
#define EIGEN_HAS_STD_RESULT_OF 1