mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-04-22 01:29:35 +08:00
add the possiibility to disable deprectated warnings (useful for deprecated unit tests!)
This commit is contained in:
parent
5d43b4049d
commit
39d4585bff
@ -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__)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user