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) #define EIGEN_ONLY_USED_FOR_DEBUG(x)
#endif #endif
#if (defined __GNUC__) #ifndef EIGEN_NO_DEPRECATED_WARNING
#define EIGEN_DEPRECATED __attribute__((deprecated)) #if (defined __GNUC__)
#elif (defined _MSC_VER) #define EIGEN_DEPRECATED __attribute__((deprecated))
#define EIGEN_DEPRECATED __declspec(deprecated) #elif (defined _MSC_VER)
#define EIGEN_DEPRECATED __declspec(deprecated)
#else
#define EIGEN_DEPRECATED
#endif
#else #else
#define EIGEN_DEPRECATED #define EIGEN_DEPRECATED
#endif #endif
#if (defined __GNUC__) #if (defined __GNUC__)