Weird float.h issues with macports clang
Joshua Root
jmr at macports.org
Fri Aug 28 22:51:18 UTC 2026
On 29/8/2026 08:25, Mark E Anderson wrote:
> This was on qt6-qtcreator.
>
> The symbols were:
> INFINITY, FLT_MAX, and DBL_MAX.
>
> float.h seems to get included but clang seems to pick one or the other
> either INFINITY works or FLT_MAX, DBL_MAX works.
INFINITY is only provided by cfloat/float.h as of C++26. Before that
it's provided by cmath/math.h.
- Josh
More information about the macports-dev
mailing list