blind attempt to fix build on big endian

Change-Id: I4dc2d5a5fbbded5f4c7a1417c150fe6b1a73a69d
This commit is contained in:
David Tardon
2017-10-26 22:24:55 +02:00
parent 4ef0497488
commit cb0eb72ec4

View File

@@ -42,6 +42,21 @@
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)
{
switch (type)