diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2013-03-20 15:24:16 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2013-03-20 15:25:56 +0100 |
commit | 0b3c72fe89d3e1d56d148114a64ddaf97040a179 (patch) | |
tree | f8c3ecf46f38dd327160642cb98d143f54ce38d5 /vcl/aqua | |
parent | c40a774c203f4a55df67cd8da22e426b3edf0da1 (diff) |
Improve previous __BIG_ENDIAN__ fix
Change-Id: Ic7ca080e00d94f93306f65ba17ffc23dd4d746e7
Diffstat (limited to 'vcl/aqua')
-rw-r--r-- | vcl/aqua/source/gdi/salgdicommon.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/vcl/aqua/source/gdi/salgdicommon.cxx b/vcl/aqua/source/gdi/salgdicommon.cxx index 57dff4564ec1..5b78f3394f64 100644 --- a/vcl/aqua/source/gdi/salgdicommon.cxx +++ b/vcl/aqua/source/gdi/salgdicommon.cxx @@ -18,6 +18,7 @@ */ #include <sal/types.h> +#include <osl/endian.h> #include <osl/file.hxx> #include "basegfx/polygon/b2dpolygon.hxx" @@ -1130,7 +1131,7 @@ SalColor AquaSalGraphics::getPixel( long nX, long nY ) // prepare creation of matching a CGBitmapContext CGColorSpaceRef aCGColorSpace = GetSalData()->mxRGBSpace; CGBitmapInfo aCGBmpInfo = kCGImageAlphaNoneSkipFirst | kCGBitmapByteOrder32Big; -#if defined __BIG_ENDIAN__ +#if defined OSL_BIGENDIAN struct{ unsigned char b, g, r, a; } aPixel; #else struct{ unsigned char a, r, g, b; } aPixel; |