summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/sal/macros.h4
-rw-r--r--vcl/source/gdi/gdimtf.cxx5
2 files changed, 3 insertions, 6 deletions
diff --git a/include/sal/macros.h b/include/sal/macros.h
index e5d233801295..2e5a4b9d3df3 100644
--- a/include/sal/macros.h
+++ b/include/sal/macros.h
@@ -52,10 +52,6 @@
# define SAL_BOUND(x,l,h) ((x) <= (l) ? (l) : ((x) >= (h) ? (h) : (x)))
#endif
-#ifndef SAL_ABS
-# define SAL_ABS(a) (((a) < 0) ? (-(a)) : (a))
-#endif
-
#ifndef SAL_STRINGIFY
# define SAL_STRINGIFY_ARG(x) #x
# define SAL_STRINGIFY(x) SAL_STRINGIFY_ARG(x)
diff --git a/vcl/source/gdi/gdimtf.cxx b/vcl/source/gdi/gdimtf.cxx
index 304ce2112c85..e70f4d22769c 100644
--- a/vcl/source/gdi/gdimtf.cxx
+++ b/vcl/source/gdi/gdimtf.cxx
@@ -18,6 +18,7 @@
*/
#include <rtl/crc.h>
+#include <cstdlib>
#include <memory>
#include <tools/stream.hxx>
#include <tools/vcompat.hxx>
@@ -611,7 +612,7 @@ bool GDIMetaFile::Mirror( BmpMirrorFlags nMirrorFlags )
if( nMirrorFlags & BmpMirrorFlags::Horizontal )
{
- nMoveX = SAL_ABS( aOldPrefSize.Width() ) - 1;
+ nMoveX = std::abs( aOldPrefSize.Width() ) - 1;
fScaleX = -1.0;
}
else
@@ -622,7 +623,7 @@ bool GDIMetaFile::Mirror( BmpMirrorFlags nMirrorFlags )
if( nMirrorFlags & BmpMirrorFlags::Vertical )
{
- nMoveY = SAL_ABS( aOldPrefSize.Height() ) - 1;
+ nMoveY = std::abs( aOldPrefSize.Height() ) - 1;
fScaleY = -1.0;
}
else