Make RT build without __USE_MISC and __USE_XOPEN

This commit is contained in:
Flössie
2017-01-28 19:03:59 +01:00
parent 9c9ac0d589
commit 88336cb897
24 changed files with 276 additions and 242 deletions

View File

@@ -27,7 +27,7 @@ namespace rtengine
Coord& Coord::operator= (const PolarCoord& other)
{
const auto radius = other.radius;
const auto angle = other.angle / 180.0 * M_PI;
const auto angle = other.angle / 180.0 * rtengine::RT_PI;
x = radius * std::cos (angle);
y = radius * std::sin (angle);
@@ -41,7 +41,7 @@ PolarCoord& PolarCoord::operator= (const Coord& other)
const double y = other.y;
radius = rtengine::norm2 (x, y);
angle = std::atan2 (y, x) * 180.0 / M_PI;
angle = std::atan2 (y, x) * 180.0 / rtengine::RT_PI;
return *this;
}