File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
src/bsoncxx/include/bsoncxx/v_noabi/bsoncxx/config Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 31
31
#endif
32
32
#elif defined(_MSC_VER)
33
33
#undef bsoncxx_if_msvc
34
- #undef bsoncxx_if_msvc(...) __VA_ARGS__
34
+ #define bsoncxx_if_msvc (...) __VA_ARGS__
35
35
#endif
36
36
37
37
// clang-format on
Original file line number Diff line number Diff line change 29
29
#define bsoncxx_pragma (...) _bsoncxxPragma(__VA_ARGS__)
30
30
#ifdef _MSC_VER
31
31
// Old MSVC doesn't recognize C++11 _Pragma(), but it always recognized __pragma
32
- #define _bsoncxxPragma (...) __pragma(bsoncxx_stringify( __VA_ARGS__) )
32
+ #define _bsoncxxPragma (...) __pragma(__VA_ARGS__)
33
33
#else
34
34
#define _bsoncxxPragma (...) _Pragma (bsoncxx_stringify(__VA_ARGS__))
35
35
#endif
122
122
_bsoncxxDisableWarningImpl_for_Clang(__VA_ARGS__)
123
123
124
124
#define _bsoncxxDisableWarningImpl_for_MSVC (...) \
125
- bsoncxx_if_msvc (warning(disable : __VA_ARGS__))
125
+ bsoncxx_if_msvc (bsoncxx_pragma( warning(disable : __VA_ARGS__) ))
You can’t perform that action at this time.
0 commit comments