summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2023-08-25 10:05:52 +0300
committerMike Kaganski <mike.kaganski@collabora.com>2023-08-25 11:12:31 +0200
commit76e11899e1439b298883721907b49bd1813f5d0c (patch)
treef68864e43f5cee57feec6a2405858208bac6e821 /include
parentdf982f67ced630fc417540941392459dee8ab7eb (diff)
WNT -> _WIN32
Change-Id: I09b1744c568b39c5b4160154536730962feb3a8c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/156089 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'include')
-rw-r--r--include/osl/interlck.h4
-rw-r--r--include/sal/mathconf.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/include/osl/interlck.h b/include/osl/interlck.h
index 6264c595d0b2..f0a39e52c74e 100644
--- a/include/osl/interlck.h
+++ b/include/osl/interlck.h
@@ -70,7 +70,7 @@ SAL_DLLPUBLIC oslInterlockedCount SAL_CALL osl_decrementInterlockedCount(oslInte
*/
#if HAVE_GCC_BUILTIN_ATOMIC
# define osl_atomic_increment(p) __sync_add_and_fetch((p), 1)
-#elif defined WNT
+#elif defined _WIN32
# define osl_atomic_increment(p) _InterlockedIncrement(p)
#else
# define osl_atomic_increment(p) osl_incrementInterlockedCount((p))
@@ -89,7 +89,7 @@ SAL_DLLPUBLIC oslInterlockedCount SAL_CALL osl_decrementInterlockedCount(oslInte
*/
#if HAVE_GCC_BUILTIN_ATOMIC
# define osl_atomic_decrement(p) __sync_sub_and_fetch((p), 1)
-#elif defined WNT
+#elif defined _WIN32
# define osl_atomic_decrement(p) _InterlockedDecrement(p)
#else
# define osl_atomic_decrement(p) osl_decrementInterlockedCount((p))
diff --git a/include/sal/mathconf.h b/include/sal/mathconf.h
index 3f8e98937d3c..ac824f1e486b 100644
--- a/include/sal/mathconf.h
+++ b/include/sal/mathconf.h
@@ -72,7 +72,7 @@ extern "C" {
#define SAL_MATH_FINITE(d) std::isfinite(d)
#elif defined __APPLE__ && !(defined __i386__ || defined __x86_64__)
#define SAL_MATH_FINITE(d) isfinite(d)
-#elif defined( WNT)
+#elif defined(_WIN32)
#define SAL_MATH_FINITE(d) _finite(d)
#elif defined(ANDROID) || defined LINUX || defined UNX
#define SAL_MATH_FINITE(d) finite(d)