dtoolbase: Fix ability to use std::round() compiling for macOS 10.6

This commit is contained in:
rdb 2021-08-04 13:18:14 +02:00
parent 5b30fa7adf
commit 2a5b5030ba

View File

@ -162,6 +162,18 @@ namespace std {
__atomic_clear(&_flag, order);
}
};
ALWAYS_INLINE float round(float arg) {
return ::roundf(arg);
}
ALWAYS_INLINE double round(double arg) {
return ::round(arg);
}
ALWAYS_INLINE long double round(long double arg) {
return ::roundl(arg);
}
using ::roundf;
using ::roundl;
};
#else
// Expect that we have access to the <atomic> header.