From 0eceea4efd47bb2a1bfb72903fbd14a5d32c5ced Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Wed, 1 Feb 2017 23:36:40 +0100 Subject: [PATCH] Define EIGEN_COMP_GNUC to reflect version number: 47, 48, 49, 50, 60, ... --- Eigen/src/Core/util/Macros.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Eigen/src/Core/util/Macros.h b/Eigen/src/Core/util/Macros.h index ab0550895..5db9e4fe5 100644 --- a/Eigen/src/Core/util/Macros.h +++ b/Eigen/src/Core/util/Macros.h @@ -23,7 +23,7 @@ /// \internal EIGEN_COMP_GNUC set to 1 for all compilers compatible with GCC #ifdef __GNUC__ - #define EIGEN_COMP_GNUC 1 + #define EIGEN_COMP_GNUC (__GNUC__*10+__GNUC_MINOR__) #else #define EIGEN_COMP_GNUC 0 #endif