Bug 1579009 - Avoid _LITTLE_ENDIAN macro collision with Solaris empty definition r=bholley

Differential Revision: https://phabricator.services.mozilla.com/D44807

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Petr Sumbera 2019-09-05 15:56:26 +00:00
Родитель 9423447163
Коммит c0d0222d3a
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -1149,7 +1149,7 @@ bool XPCWrappedNative::CallMethod(XPCCallContext& ccx,
return helper.get().Call();
}
#if (__GNUC__ && __linux__ && __PPC64__ && _LITTLE_ENDIAN)
#if (__GNUC__ && __linux__ && __PPC64__ && defined(_LITTLE_ENDIAN))
// Work around a compiler bug on ppc64le (bug 1512162).
__attribute__ ((noinline,noclone))
#endif
@ -1311,7 +1311,7 @@ bool CallMethodHelper::GetOutParamSource(uint8_t paramIndex,
return true;
}
#if (__GNUC__ && __linux__ && __PPC64__ && _LITTLE_ENDIAN)
#if (__GNUC__ && __linux__ && __PPC64__ && defined(_LITTLE_ENDIAN))
// Work around a compiler bug on ppc64le (bug 1512162).
__attribute__ ((noinline,noclone))
#endif