mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-05-02 16:54:10 +08:00
Define EIGEN_COMP_CLANG to clang version as major*100+minor (e.g., 307 corresponds to clang 3.7)
This commit is contained in:
parent
130f891bb0
commit
49b005181a
@ -28,9 +28,9 @@
|
|||||||
#define EIGEN_COMP_GNUC 0
|
#define EIGEN_COMP_GNUC 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/// \internal EIGEN_COMP_CLANG set to 1 if the compiler is clang (alias for __clang__)
|
/// \internal EIGEN_COMP_CLANG set to major+minor version (e.g., 307 for clang 3.7) if the compiler is clang
|
||||||
#if defined(__clang__)
|
#if defined(__clang__)
|
||||||
#define EIGEN_COMP_CLANG 1
|
#define EIGEN_COMP_CLANG (__clang_major__*100+__clang_minor__)
|
||||||
#else
|
#else
|
||||||
#define EIGEN_COMP_CLANG 0
|
#define EIGEN_COMP_CLANG 0
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user