File tree 1 file changed +20
-7
lines changed
include/ztd/version/detail
1 file changed +20
-7
lines changed Original file line number Diff line number Diff line change 94
94
#if defined(ZTD_HAS_ATTRIBUTE)
95
95
#define ZTD_HAS_ATTRIBUTE_I_ (...) ZTD_HAS_ATTRIBUTE(__VA_ARGS__)
96
96
#elif ZTD_IS_ON(ZTD_CXX) && defined(__has_cpp_attribute)
97
- #define ZTD_HAS_ATTRIBUTE_I_ (...) __has_cpp_attribute(__VA_ARGS__)
97
+ #if defined(_MSC_VER)
98
+ // Assume Microsoft will get their shit together in a couple major versions
99
+ #if _MSC_FULL_VER > 196000000
100
+ #define ZTD_HAS_ATTRIBUTE_I_ (...) __has_cpp_attribute(__VA_ARGS__)
101
+ #else
102
+ #define ZTD_HAS_ATTRIBUTE_I_ (...) 0L
103
+ #endif
104
+ #else
105
+ #define ZTD_HAS_ATTRIBUTE_I_ (...) __has_cpp_attribute(__VA_ARGS__)
106
+ #endif
98
107
#elif ZTD_IS_ON(ZTD_C) && defined(__has_c_attribute)
99
- #if defined(_MSC_VER) && _MSC_FULL_VER > 196000000
100
- // Assume Microsoft will get their shit together in a couple major versions
101
- #define ZTD_HAS_ATTRIBUTE_I_ (...) 0L
102
- #else
103
- #define ZTD_HAS_ATTRIBUTE_I_ (...) __has_attribute(__VA_ARGS__)
104
- #endif
108
+ #if defined(_MSC_VER)
109
+ // Assume Microsoft will get their shit together in a couple major versions
110
+ #if _MSC_FULL_VER > 196000000
111
+ #define ZTD_HAS_ATTRIBUTE_I_ (...) __has_c_attribute(__VA_ARGS__)
112
+ #else
113
+ #define ZTD_HAS_ATTRIBUTE_I_ (...) 0L
114
+ #endif
115
+ #else
116
+ #define ZTD_HAS_ATTRIBUTE_I_ (...) __has_c_attribute(__VA_ARGS__)
117
+ #endif
105
118
#elif defined(__has_attribute)
106
119
#define ZTD_HAS_ATTRIBUTE_I_ (...) __has_attribute(__VA_ARGS__)
107
120
#else
You can’t perform that action at this time.
0 commit comments