add the possiibility to disable deprectated warnings (useful for deprecated unit tests!)

This commit is contained in:
Gael Guennebaud 2011-10-24 09:40:37 +02:00
parent 5d43b4049d
commit 39d4585bff

View File

@ -231,12 +231,16 @@
#define EIGEN_ONLY_USED_FOR_DEBUG(x)
#endif
#if (defined __GNUC__)
#define EIGEN_DEPRECATED __attribute__((deprecated))
#elif (defined _MSC_VER)
#define EIGEN_DEPRECATED __declspec(deprecated)
#ifndef EIGEN_NO_DEPRECATED_WARNING
#if (defined __GNUC__)
#define EIGEN_DEPRECATED __attribute__((deprecated))
#elif (defined _MSC_VER)
#define EIGEN_DEPRECATED __declspec(deprecated)
#else
#define EIGEN_DEPRECATED
#endif
#else
#define EIGEN_DEPRECATED
#define EIGEN_DEPRECATED
#endif
#if (defined __GNUC__)