Fix compile on Android
This is a workaround for a broken compiler Change-Id: I10c8c750caf56036419807ec4a2439bf14cf64d6 Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com>
This commit is contained in:
parent
660a615a37
commit
d88ec35b11
@ -386,13 +386,14 @@ static inline qreal qRadialDeterminant(qreal a, qreal b, qreal c)
|
|||||||
return (b * b) - (4 * a * c);
|
return (b * b) - (4 * a * c);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
extern void (*qt_memfill32)(quint32 *dest, quint32 value, int count);
|
||||||
|
|
||||||
template <class RadialFetchFunc> Q_STATIC_TEMPLATE_FUNCTION
|
template <class RadialFetchFunc> Q_STATIC_TEMPLATE_FUNCTION
|
||||||
const uint * QT_FASTCALL qt_fetch_radial_gradient_template(uint *buffer, const Operator *op, const QSpanData *data,
|
const uint * QT_FASTCALL qt_fetch_radial_gradient_template(uint *buffer, const Operator *op, const QSpanData *data,
|
||||||
int y, int x, int length)
|
int y, int x, int length)
|
||||||
{
|
{
|
||||||
// avoid division by zero
|
// avoid division by zero
|
||||||
if (qFuzzyIsNull(op->radial.a)) {
|
if (qFuzzyIsNull(op->radial.a)) {
|
||||||
extern void (*qt_memfill32)(quint32 *dest, quint32 value, int count);
|
|
||||||
qt_memfill32(buffer, 0, length);
|
qt_memfill32(buffer, 0, length);
|
||||||
return buffer;
|
return buffer;
|
||||||
}
|
}
|
||||||
@ -696,7 +697,6 @@ void qt_memfill(T *dest, T value, int count);
|
|||||||
|
|
||||||
template<> inline void qt_memfill(quint32 *dest, quint32 color, int count)
|
template<> inline void qt_memfill(quint32 *dest, quint32 color, int count)
|
||||||
{
|
{
|
||||||
extern void (*qt_memfill32)(quint32 *dest, quint32 value, int count);
|
|
||||||
qt_memfill32(dest, color, count);
|
qt_memfill32(dest, color, count);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user