summaryrefslogtreecommitdiffstats
path: root/src/gui/opengl/qopengl.cpp
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2015-05-04 17:39:01 -0700
committerThiago Macieira <thiago.macieira@intel.com>2015-06-22 15:13:13 +0000
commit4dc597d96c26445a892cfc8f10d0f1da3d8decf1 (patch)
treeabecf1b6f5232adcc00de16fae661bc03f3cc942 /src/gui/opengl/qopengl.cpp
parent68e31e4ab9fb3fdd544bc402e7654e2ac1f5eb53 (diff)
Force Visual C++ math.h to define the M_ constants
That header defines those constants outside of the math.h include guard, so if someone #define'd _USE_MATH_DEFINES and #include'd math.h later, they would get VC++ warnings about constants like M_PI being redefined with different values (ours have parentheses, VS2010's math.h don't). Instead, let's define _USE_MATH_DEFINES ourselves so we get the M_* macros from math.h. That way, we won't redefine them outselves. Task-number: QTBUG-45935 Change-Id: Idf715b895bac4d56b4afffff13db2c98ba8345c2 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com> Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
Diffstat (limited to 'src/gui/opengl/qopengl.cpp')
0 files changed, 0 insertions, 0 deletions