diff options
author | Jens-Heiner Rechtien <hr@openoffice.org> | 2004-06-24 15:18:12 +0000 |
---|---|---|
committer | Jens-Heiner Rechtien <hr@openoffice.org> | 2004-06-24 15:18:12 +0000 |
commit | 286e56a967db0291f3e376991c10a1cf979cde58 (patch) | |
tree | bf77c90bcaefca88a0d50219dcf423eb0f1f3826 /vcl/source/gdi/pngwrite.cxx | |
parent | 5d32681c75a7b5bd2e72d181505accb2681f4b95 (diff) |
#i10000#: __LITTLEENDIAN -> OSL_LITENDIAN
Diffstat (limited to 'vcl/source/gdi/pngwrite.cxx')
-rw-r--r-- | vcl/source/gdi/pngwrite.cxx | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/vcl/source/gdi/pngwrite.cxx b/vcl/source/gdi/pngwrite.cxx index 68c5b4cc2b2f..f7c0e198fd89 100644 --- a/vcl/source/gdi/pngwrite.cxx +++ b/vcl/source/gdi/pngwrite.cxx @@ -2,9 +2,9 @@ * * $RCSfile: pngwrite.cxx,v $ * - * $Revision: 1.2 $ + * $Revision: 1.3 $ * - * last change: $Author: rt $ $Date: 2004-05-21 14:39:42 $ + * last change: $Author: hr $ $Date: 2004-06-24 16:18:12 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -71,6 +71,10 @@ #include "svapp.hxx" #include "alpha.hxx" +#ifndef _OSL_ENDIAN_H_ +#include <osl/endian.h> +#endif + // ----------- // - Defines - // ----------- @@ -651,7 +655,7 @@ void PNGWriterImpl::ImplOpenChunk ( ULONG nChunkType ) *mpOStm << (ULONG)0; // writes chunk lenght *mpOStm << nChunkType; // chunk type to stream -#ifdef __LITTLEENDIAN +#ifdef OSL_LITENDIAN nChunkType = SWAPLONG( nChunkType ); #endif mnCRC = rtl_crc32( 0, &nChunkType, 4 ); @@ -670,7 +674,7 @@ void PNGWriterImpl::ImplWriteChunk ( ULONG nSource ) { mnChunkDatSize+=4; *mpOStm << nSource; -#ifdef __LITTLEENDIAN +#ifdef OSL_LITENDIAN nSource = SWAPLONG( nSource ); #endif mnCRC = rtl_crc32( mnCRC, &nSource, 4 ); |