mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-29 00:06:44 -04:00
dtoolbase: Fix ability to use std::round() compiling for macOS 10.6
This commit is contained in:
parent
5b30fa7adf
commit
2a5b5030ba
@ -162,6 +162,18 @@ namespace std {
|
|||||||
__atomic_clear(&_flag, order);
|
__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
|
#else
|
||||||
// Expect that we have access to the <atomic> header.
|
// Expect that we have access to the <atomic> header.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user