File tree Expand file tree Collapse file tree 1 file changed +16
-8
lines changed Expand file tree Collapse file tree 1 file changed +16
-8
lines changed Original file line number Diff line number Diff line change @@ -40,15 +40,23 @@ enum class TypeRefKind {
40
40
41
41
// MSVC reports an error if we use "template"
42
42
// Clang reports an error if we don't use "template"
43
- #if defined(__clang__) || defined(__GNUC__)
44
- #define DEPENDENT_TEMPLATE template
45
- #if __clang_major__ >= 7
46
- #define DEPENDENT_TEMPLATE2
43
+ #if defined(__APPLE_CC__)
44
+ # define DEPENDENT_TEMPLATE template
45
+ # if __APPLE_CC__ >= 7000
46
+ # define DEPENDENT_TEMPLATE2
47
+ # else
48
+ # define DEPENDENT_TEMPLATE2 template
49
+ # endif
50
+ #elif defined(__clang__) || defined(__GNUC__)
51
+ # define DEPENDENT_TEMPLATE template
52
+ # if __clang_major__ >= 7
53
+ # define DEPENDENT_TEMPLATE2
54
+ # else
55
+ # define DEPENDENT_TEMPLATE2 template
56
+ # endif
47
57
#else
48
- #define DEPENDENT_TEMPLATE2 template
49
- #endif
50
- #else
51
- #define DEPENDENT_TEMPLATE
58
+ # define DEPENDENT_TEMPLATE template
59
+ # define DEPENDENT_TEMPLATE2
52
60
#endif
53
61
54
62
#define FIND_OR_CREATE_TYPEREF (Allocator, TypeRefTy, ...) \
You can’t perform that action at this time.
0 commit comments