Skip to content

Commit ff4c71a

Browse files
authored
When Clang defines _MSC_VER, prefer Clang versions of attribute macros (#516)
1 parent ba1cab6 commit ff4c71a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/cpp2util.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -681,7 +681,7 @@ class out {
681681
//
682682
//-----------------------------------------------------------------------
683683
//
684-
#ifdef _MSC_VER
684+
#if defined(_MSC_VER) && !defined(__clang_major__)
685685
#define CPP2_FORCE_INLINE __forceinline
686686
#define CPP2_FORCE_INLINE_LAMBDA [[msvc::forceinline]]
687687
#define CPP2_LAMBDA_NO_DISCARD

0 commit comments

Comments
 (0)