include/sal/types.h |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit e969c692dd8705af5894a065674e2461ff514985
Author:     Michael Stahl <[email protected]>
AuthorDate: Fri Mar 8 13:40:44 2024 +0100
Commit:     Michael Stahl <[email protected]>
CommitDate: Fri Mar 8 13:40:44 2024 +0100

    sal: the old MSVC doesn't know _Pragma, only __pragma
    
    Change-Id: I139922d9cfabb3772782589f097234fd33e41809

diff --git a/include/sal/types.h b/include/sal/types.h
index f8a53ae722a5..2e8d5e8ad873 100644
--- a/include/sal/types.h
+++ b/include/sal/types.h
@@ -497,10 +497,10 @@ template< typename T1, typename T2 > inline T1 
static_int_cast(T2 n) {
     _Pragma(SAL_STRINGIFY_ARG(GCC diagnostic pop))
 #elif defined LIBO_INTERNAL_ONLY && defined _MSC_VER
 #define SAL_WNODEPRECATED_DECLARATIONS_PUSH \
-    _Pragma(SAL_STRINGIFY_ARG(warning(push))) \
-    _Pragma(SAL_STRINGIFY_ARG(warning(disable : 4996)))
+    __pragma(warning(push)) \
+    __pragma(warning(disable : 4996))
 #define SAL_WNODEPRECATED_DECLARATIONS_POP \
-    _Pragma(SAL_STRINGIFY_ARG(warning(pop)))
+    __pragma(warning(pop))
 #else
 #   define SAL_WNODEPRECATED_DECLARATIONS_PUSH
 #   define SAL_WNODEPRECATED_DECLARATIONS_POP

Reply via email to