Skip to content

Commit 0689acd

Browse files
authored
Merge pull request #1036 from leapmotion/fix-xcode9-compat
Fix compatibility issues with non-Xcode 9 systems
2 parents c7a8d6b + ff1ca28 commit 0689acd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/autowiring/auto_id.h

+2-2
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)