Kaydet (Commit) cb0eb72e authored tarafından David Tardon's avatar David Tardon

blind attempt to fix build on big endian

Change-Id: I4dc2d5a5fbbded5f4c7a1417c150fe6b1a73a69d
üst 4ef04974
...@@ -42,6 +42,21 @@ ...@@ -42,6 +42,21 @@
namespace emfplushelper namespace emfplushelper
{ {
#ifdef OSL_BIGENDIAN
// little endian <-> big endian switch
static float GetSwapFloat(SvStream& rStream)
{
float fTmp;
sal_Int8* pPtr = (sal_Int8*)&fTmp;
rStream.ReadSChar(pPtr[3]);
rStream.ReadSChar(pPtr[2]);
rStream.ReadSChar(pPtr[1]);
rStream.ReadSChar(pPtr[0]);
return fTmp;
}
#endif
const char* emfTypeToName(sal_uInt16 type) const char* emfTypeToName(sal_uInt16 type)
{ {
switch (type) switch (type)
......
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