lround is not a member of std namespace

This commit is contained in:
Mitch Watrous
2012-09-05 12:18:17 -07:00
parent dac7836ae3
commit 6957990c9e

View File

@@ -26,7 +26,7 @@ public:
{
#define HPCAIRO_MAX_64 18446744073709551615.0
double fhi = std::floor (value);
int64_t hi = std::lround (fhi);
int64_t hi = lround (fhi);
uint64_t lo = (uint64_t)((value - fhi) * HPCAIRO_MAX_64);
_v.hi = hi;
_v.lo = lo;