Commit cfa4524c authored by Rosen Penev's avatar Rosen Penev Committed by Max Kellermann

util/Math: change define

This has nothing to do with uClibc. It has everything to do with gcc's libstdc++. C99 math can be compile time disabled for it. Check for that and use boost lround when std is not available. Signed-off-by: 's avatarRosen Penev <rosenp@gmail.com>
parent 4fd0c84f
......@@ -30,7 +30,11 @@
#ifndef MATH_HXX
#define MATH_HXX
#ifdef __UCLIBC__
/*
* C99 math can be optionally omitted with gcc's libstdc++.
* Use boost if unavailable.
*/
#if (defined(__GLIBCPP__) || defined(__GLIBCXX__)) && !defined(_GLIBCXX_USE_C99_MATH)
#include <boost/math/special_functions/round.hpp>
using boost::math::lround;
#else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment