Skip to content

Commit ff1ca28

Browse files
author
Jonathan Marsden
committed
Fix compatibility issues with non-Xcode9 systems
1 parent c7a8d6b commit ff1ca28

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/autowiring/auto_id.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ namespace autowiring {
5858
)
5959
{}
6060

61-
#if !defined(_MSC_VER)
61+
#if defined(__clang__) && __clang_major__ >= 9
6262
#pragma clang diagnostic push
6363
#pragma clang diagnostic ignored "-Wc++1z-compat-mangling"
6464
#endif
@@ -79,7 +79,7 @@ namespace autowiring {
7979
pToObj(pToObj),
8080
pFromObj(pFromObj)
8181
{}
82-
#if !defined(_MSC_VER)
82+
#if defined(__clang__) && __clang_major__ >= 9
8383
#pragma clang diagnostic pop
8484
#endif
8585

0 commit comments

Comments
 (0)