Kaydet (Commit) 1c3c3812 authored tarafından Luboš Luňák's avatar Luboš Luňák

avoid Wundef / fix endian detection

üst 9477760a
...@@ -19,6 +19,7 @@ ...@@ -19,6 +19,7 @@
#include <sal/types.h> #include <sal/types.h>
#include <osl/file.hxx> #include <osl/file.hxx>
#include <osl/endian.h>
#include "basegfx/polygon/b2dpolygon.hxx" #include "basegfx/polygon/b2dpolygon.hxx"
...@@ -1083,7 +1084,7 @@ SalColor QuartzSalGraphics::getPixel( long nX, long nY ) ...@@ -1083,7 +1084,7 @@ SalColor QuartzSalGraphics::getPixel( long nX, long nY )
// prepare creation of matching a CGBitmapContext // prepare creation of matching a CGBitmapContext
CGColorSpaceRef aCGColorSpace = GetSalData()->mxRGBSpace; CGColorSpaceRef aCGColorSpace = GetSalData()->mxRGBSpace;
CGBitmapInfo aCGBmpInfo = kCGImageAlphaNoneSkipFirst | kCGBitmapByteOrder32Big; CGBitmapInfo aCGBmpInfo = kCGImageAlphaNoneSkipFirst | kCGBitmapByteOrder32Big;
#if __BIG_ENDIAN__ #if defined OSL_BIGENDIAN
struct{ unsigned char b, g, r, a; } aPixel; struct{ unsigned char b, g, r, a; } aPixel;
#else #else
struct{ unsigned char a, r, g, b; } aPixel; struct{ unsigned char a, r, g, b; } aPixel;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment