summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNoel <noelgrandin@gmail.com>2020-11-11 14:01:11 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-11-16 14:31:35 +0100
commit7599f8743b56b8858cb0e50cf3f590d17891c041 (patch)
tree881b3667715da2993ae870333c0142f2c4206b0c /include
parent36b3b357fe2a882db6a5f5a006239e16200fb847 (diff)
make the tools::Long define logic more obvious
- in tools/long.hxx, use _WIN64 to indicate that we are doing this for the benefit of Windows 64-bit Change-Id: I5eec88be96a7622ba90bd9582406f70c89e8c28d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105584 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include')
-rw-r--r--include/tools/long.hxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/tools/long.hxx b/include/tools/long.hxx
index ceda30676913..ef707070af8b 100644
--- a/include/tools/long.hxx
+++ b/include/tools/long.hxx
@@ -23,12 +23,12 @@
*/
namespace tools
{
-#if SAL_TYPES_SIZEOFPOINTER == 8
+#if defined _WIN64
typedef sal_Int64 Long;
typedef sal_uInt64 ULong;
#else
-typedef sal_Int32 Long;
-typedef sal_uInt32 ULong;
+typedef long Long;
+typedef unsigned long ULong;
#endif
}