DBL_MAX not found after clearing DerivedData

We are running our builds on a build machine that clears out the DerivedData before every build, and it keeps crashing that it can't find DBL_MAX. If I include float.h and not switch DBL_MAX then the build still fails. It works just fine when using FLT_MAX.