Skip to content

Commit 8f5b84d

Browse files
committed
Fix __clang__/__clang_major__ confusion when trying to define language feature
macros in terms of Clang major version number. Fixes #168.
1 parent 8accdd9 commit 8f5b84d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/replace.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ namespace deduction {
3737
// MSVC and older Clangs produce hard errors here, so ill_formed does not
3838
// work.
3939
#if defined(__cpp_char8_t) && !defined(_MSC_VER) && \
40-
(!defined(__clang__) || 16 <= __clang__)
40+
(!defined(__clang_major__) || 16 <= __clang_major__)
4141
char const empty_str[] = "";
4242

4343
template<typename T>

0 commit comments

Comments
 (0)