[Libreoffice-commits] core.git: vcl/ios
LuboÅ¡ LuÅák
l.lunak at suse.cz
Thu Mar 21 04:17:37 PDT 2013
vcl/ios/source/gdi/salgdicommon.cxx | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit 1c3c38122a020a998a92dd15a0870c576a66a8aa
Author: LuboÅ¡ LuÅák <l.lunak at suse.cz>
Date: Thu Mar 21 12:17:00 2013 +0100
avoid Wundef / fix endian detection
diff --git a/vcl/ios/source/gdi/salgdicommon.cxx b/vcl/ios/source/gdi/salgdicommon.cxx
index c15346a..947c719 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;
More information about the Libreoffice-commits
mailing list