diff options
author | BogDan Vatra <bogdan@kde.org> | 2013-02-04 21:08:10 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-02-27 18:02:10 +0100 |
commit | d88ec35b1186348085c8db9b8e075021ab8dfd68 (patch) | |
tree | c6ed33f6bf3456a7aed8384d4223ee140c5cb8fe /src/gui/painting/qdrawhelper_p.h | |
parent | 660a615a376ade1a6dba9559367f7ba62d1c6564 (diff) |
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>
Diffstat (limited to 'src/gui/painting/qdrawhelper_p.h')
-rw-r--r-- | src/gui/painting/qdrawhelper_p.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/painting/qdrawhelper_p.h b/src/gui/painting/qdrawhelper_p.h index f958538aa6..5d9867012f 100644 --- a/src/gui/painting/qdrawhelper_p.h +++ b/src/gui/painting/qdrawhelper_p.h @@ -386,13 +386,14 @@ static inline qreal qRadialDeterminant(qreal a, qreal b, qreal c) return (b * b) - (4 * a * c); } +extern void (*qt_memfill32)(quint32 *dest, quint32 value, int count); + template <class RadialFetchFunc> Q_STATIC_TEMPLATE_FUNCTION const uint * QT_FASTCALL qt_fetch_radial_gradient_template(uint *buffer, const Operator *op, const QSpanData *data, int y, int x, int length) { // avoid division by zero if (qFuzzyIsNull(op->radial.a)) { - extern void (*qt_memfill32)(quint32 *dest, quint32 value, int count); qt_memfill32(buffer, 0, length); 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) { - extern void (*qt_memfill32)(quint32 *dest, quint32 value, int count); qt_memfill32(dest, color, count); } |