diff options
author | RĂ¼diger Timm <rt@openoffice.org> | 2004-06-17 12:37:36 +0000 |
---|---|---|
committer | RĂ¼diger Timm <rt@openoffice.org> | 2004-06-17 12:37:36 +0000 |
commit | 54ff8ba4b0f9a5655b62146c6b6f5c8aabed4386 (patch) | |
tree | ac5a1cb7c9d3a33cdcfb3174959d0ca6a86e7a14 | |
parent | f260173fc3ef7994b96cbffd29b875adf24483a5 (diff) |
INTEGRATION: CWS ooo64bit01 (1.1.94); FILE MERGED
2004/03/15 23:18:27 fa 1.1.94.1: First bits of 64-bitness. #i25651# & more
-rw-r--r-- | automation/source/server/cmdbasestream.cxx | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/automation/source/server/cmdbasestream.cxx b/automation/source/server/cmdbasestream.cxx index 106970c09aba..87b109bace0b 100644 --- a/automation/source/server/cmdbasestream.cxx +++ b/automation/source/server/cmdbasestream.cxx @@ -2,9 +2,9 @@ * * $RCSfile: cmdbasestream.cxx,v $ * - * $Revision: 1.1 $ + * $Revision: 1.2 $ * - * last change: $Author: mh $ $Date: 2002-11-18 15:27:30 $ + * last change: $Author: rt $ $Date: 2004-06-17 13:37:36 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -67,6 +67,9 @@ * ************************************************************************/ +#ifndef _OSL_ENDIAN_H_ +#include <osl/endian.h> +#endif #include "cmdbasestream.hxx" #include "rcontrol.hxx" @@ -263,7 +266,7 @@ void CmdBaseStream::Read (comm_UniChar* &aString, comm_USHORT &nLenInChars ) aString = new comm_UniChar [nLenInChars]; pCommStream->Read( aString, ((comm_ULONG)nLenInChars) * sizeof( comm_UniChar ) ); -#ifdef __BIGENDIAN +#ifdef OSL_BIGENDIAN // we have to change the byteorder comm_USHORT n; for ( n = 0 ; n < nLenInChars ; n++ ) @@ -304,7 +307,7 @@ void CmdBaseStream::Write( const comm_UniChar* aString, comm_USHORT nLenInChars { *pCommStream << comm_USHORT(BinString); *pCommStream << nLenInChars; -#ifdef __BIGENDIAN +#ifdef OSL_BIGENDIAN // we have to change the byteorder comm_UniChar* aNewString; aNewString = new comm_UniChar [nLenInChars]; |