mirror of
https://gitlab.com/pholy/OSCAR-code.git
synced 2025-04-07 03:30:44 +00:00
Fix Qt 5.2.1 mingw build missing M_PI. But don't use Qt5.2.1 on windows. OpenGl is broken
This commit is contained in:
parent
e8b07b4eac
commit
cf9fb10355
@ -73,9 +73,12 @@ void LinedRoundedRectangle(int x, int y, int w, int h, int radius, int lw, QColo
|
|||||||
*/
|
*/
|
||||||
void RoundedRectangle(int x, int y, int w, int h, int radius, const QColor color);
|
void RoundedRectangle(int x, int y, int w, int h, int radius, const QColor color);
|
||||||
|
|
||||||
#ifdef BUILD_WITH_MSVC
|
#ifndef M_PI
|
||||||
// Visual C++ doesn't have either of these in it's maths header.. I'm not surprised at Microsofts maths abilities..
|
|
||||||
const double M_PI = 3.141592653589793;
|
const double M_PI = 3.141592653589793;
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef BUILD_WITH_MSVC
|
||||||
|
// Visual C++ doesn't have round in it's maths header..
|
||||||
|
|
||||||
double round(double number);
|
double round(double number);
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user