Skip to content

Commit 30ce1b0

Browse files
authored
Merge pull request swiftlang#75681 from nico/unknown-pragma
Fix -Wunknown-pragmas warnings with gcc in swift demangling code
2 parents bccf135 + be8d793 commit 30ce1b0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/swift/Demangling/ManglingMacros.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@
1717
#define MANGLE_AS_STRING(M) STRINGIFY_MANGLING(M)
1818

1919
/// The mangling prefix for the new mangling.
20-
#if !defined(_MSC_VER) || _MSC_VER-0 >= 1926
20+
#if defined(__clang__)
2121
_Pragma("clang diagnostic push")
2222
_Pragma("clang diagnostic ignored \"-Wdollar-in-identifier-extension\"")
2323
#endif
2424
#define MANGLING_PREFIX $s
25-
#if !defined(_MSC_VER) || _MSC_VER-0 >= 1926
25+
#if defined(__clang__)
2626
_Pragma("clang diagnostic pop")
2727
#endif
2828

0 commit comments

Comments
 (0)