diff options
author | Luboš Luňák <l.lunak@suse.cz> | 2013-03-21 12:17:00 +0100 |
---|---|---|
committer | Luboš Luňák <l.lunak@suse.cz> | 2013-03-21 12:17:00 +0100 |
commit | 1c3c38122a020a998a92dd15a0870c576a66a8aa (patch) | |
tree | 7913f9674e542a6590dae0284b3aae14df4d3698 /vcl/ios | |
parent | 9477760a38416ef3e50781cc2821a3b1600a6d65 (diff) |
avoid Wundef / fix endian detection
Diffstat (limited to 'vcl/ios')
-rw-r--r-- | vcl/ios/source/gdi/salgdicommon.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/vcl/ios/source/gdi/salgdicommon.cxx b/vcl/ios/source/gdi/salgdicommon.cxx index c15346a7bb33..947c7194c96e 100644 --- a/vcl/ios/source/gdi/salgdicommon.cxx +++ b/vcl/ios/source/gdi/salgdicommon.cxx @@ -19,6 +19,7 @@ #include <sal/types.h> #include <osl/file.hxx> +#include <osl/endian.h> #include "basegfx/polygon/b2dpolygon.hxx" @@ -1083,7 +1084,7 @@ SalColor QuartzSalGraphics::getPixel( long nX, long nY ) // prepare creation of matching a CGBitmapContext CGColorSpaceRef aCGColorSpace = GetSalData()->mxRGBSpace; CGBitmapInfo aCGBmpInfo = kCGImageAlphaNoneSkipFirst | kCGBitmapByteOrder32Big; -#if __BIG_ENDIAN__ +#if defined OSL_BIGENDIAN struct{ unsigned char b, g, r, a; } aPixel; #else struct{ unsigned char a, r, g, b; } aPixel; |