Skip to content

Commit ea3152b

Browse files
committed
[libc++][test] Partially revert msvc_stdlib_force_include.h _Pragma change
... keep the warning suppression, but revert the `__pragma` to `_Pragma` change because `_Pragma` interacts badly with `/Zc:preprocessor`.
1 parent 4fdb63b commit ea3152b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

libcxx/test/support/msvc_stdlib_force_include.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,11 +100,11 @@ const AssertionDialogAvoider assertion_dialog_avoider{};
100100
_Pragma("GCC diagnostic pop")
101101
#else // ^^^ clang / MSVC vvv
102102
#define _LIBCPP_SUPPRESS_DEPRECATED_PUSH \
103-
_Pragma("warning(push)") \
104-
_Pragma("warning(disable : 4996)") \
105-
_Pragma("warning(disable : 5215)")
103+
__pragma(warning(push)) \
104+
__pragma(warning(disable : 4996)) \
105+
__pragma(warning(disable : 5215))
106106
#define _LIBCPP_SUPPRESS_DEPRECATED_POP \
107-
_Pragma("warning(pop)")
107+
__pragma(warning(pop))
108108
#endif // __clang__
109109

110110
#endif // SUPPORT_MSVC_STDLIB_FORCE_INCLUDE_H

0 commit comments

Comments
 (0)