diff --git a/include/hpp/centroidal-dynamics/util.hh b/include/hpp/centroidal-dynamics/util.hh
index bde796b95d411245edd13306277a2ecb41127666..01ef7320a30e8ffd78a9e457c2ce8519ee9cacbb 100644
--- a/include/hpp/centroidal-dynamics/util.hh
+++ b/include/hpp/centroidal-dynamics/util.hh
@@ -5,9 +5,10 @@
 #ifndef HPP_CENTROIDAL_DYNAMICS_UTIL_HH
 #define HPP_CENTROIDAL_DYNAMICS_UTIL_HH
 
+#include <Eigen/Dense>
+// Macros.h needs to be included after Dense
 #include <Eigen/src/Core/util/Macros.h>
 
-#include <Eigen/Dense>
 #include <cassert>
 #include <cmath>
 #include <fstream>