[Libreoffice-commits] core.git: vcl/aqua

Stephan Bergmann sbergman at redhat.com
Wed Mar 20 07:28:44 PDT 2013


 vcl/aqua/source/gdi/salgdicommon.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 0b3c72fe89d3e1d56d148114a64ddaf97040a179
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Wed Mar 20 15:24:16 2013 +0100

    Improve previous __BIG_ENDIAN__ fix
    
    Change-Id: Ic7ca080e00d94f93306f65ba17ffc23dd4d746e7

diff --git a/vcl/aqua/source/gdi/salgdicommon.cxx b/vcl/aqua/source/gdi/salgdicommon.cxx
index 57dff45..5b78f33 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;


More information about the Libreoffice-commits mailing list