Kaydet (Commit) 51890613 authored tarafından Thomas Arnhold's avatar Thomas Arnhold

vcl: use OSL_BIGENDIAN

Change-Id: Ifdf54d30cca94d0d65d78f94d5fac31edf8c6df2
üst ec8ada02
...@@ -24,6 +24,7 @@ ...@@ -24,6 +24,7 @@
#include <sal/types.h> #include <sal/types.h>
#include <osl/endian.h>
#ifdef WNT #ifdef WNT
#include <windows.h> #include <windows.h>
...@@ -88,7 +89,7 @@ GrFeatureParser::GrFeatureParser(const gr_face * pFace, const ::rtl::OString fea ...@@ -88,7 +89,7 @@ GrFeatureParser::GrFeatureParser(const gr_face * pFace, const ::rtl::OString fea
gr_uint32 nFaceLang = gr_face_lang_by_index(pFace, i); gr_uint32 nFaceLang = gr_face_lang_by_index(pFace, i);
FeatId aSupportedLang; FeatId aSupportedLang;
aSupportedLang.num = nFaceLang; aSupportedLang.num = nFaceLang;
#ifdef __BIG_ENDIAN__ #ifdef OSL_BIGENDIAN
// here we only expect full 3 letter codes // here we only expect full 3 letter codes
if (aLang.label[0] == aSupportedLang.label[0] && if (aLang.label[0] == aSupportedLang.label[0] &&
aLang.label[1] == aSupportedLang.label[1] && aLang.label[1] == aSupportedLang.label[1] &&
...@@ -163,7 +164,7 @@ void GrFeatureParser::setLang(const gr_face * pFace, const rtl::OString & lang) ...@@ -163,7 +164,7 @@ void GrFeatureParser::setLang(const gr_face * pFace, const rtl::OString & lang)
FeatId aSupportedLang; FeatId aSupportedLang;
aSupportedLang.num = nFaceLang; aSupportedLang.num = nFaceLang;
// here we only expect full 2 & 3 letter codes // here we only expect full 2 & 3 letter codes
#ifdef __BIG_ENDIAN__ #ifdef OSL_BIGENDIAN
if (aLang.label[0] == aSupportedLang.label[0] && if (aLang.label[0] == aSupportedLang.label[0] &&
aLang.label[1] == aSupportedLang.label[1] && aLang.label[1] == aSupportedLang.label[1] &&
aLang.label[2] == aSupportedLang.label[2] && aLang.label[2] == aSupportedLang.label[2] &&
......
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