Fix warning about redefinition of M_PI in tst_qwmatrix.
Change-Id: Ib5e5fe0f087448b07adfa02984524cbb10c78395 Reviewed-by: Laszlo Papp <lpapp@kde.org> Reviewed-by: Oliver Wolff <oliver.wolff@digia.com>
This commit is contained in:
parent
e334fb6493
commit
74c3a2f4f4
@ -154,7 +154,7 @@ void tst_QWMatrix::mapping_data()
|
||||
<< QRect( 0, 0, 30, 40 )
|
||||
<< QPolygon( QRect( -300, -400, 300, 400 ) );
|
||||
|
||||
#if defined(Q_OS_WIN32) || defined(Q_OS_WINCE)
|
||||
#if (defined(Q_OS_WIN) || defined(Q_OS_WINCE)) && !defined(M_PI)
|
||||
#define M_PI 3.14159265897932384626433832795f
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user