[flang] Fixed compiler build on glibc 2.17 systems after 3149c93. (#84873)

This commit is contained in:
Slava Zakharin
2024-03-11 23:09:44 -07:00
committed by GitHub
parent e89b4bcf32
commit f95710c765
3 changed files with 12 additions and 0 deletions

View File

@@ -27,6 +27,10 @@
#include <string>
#include <type_traits>
// Some environments, viz. glibc 2.17, allow the macro HUGE
// to leak out of <math.h>.
#undef HUGE
namespace Fortran::evaluate::value {
// Implements an integer as an assembly of smaller host integer parts

View File

@@ -18,6 +18,10 @@
#include <limits>
#include <string>
// Some environments, viz. glibc 2.17, allow the macro HUGE
// to leak out of <math.h>.
#undef HUGE
namespace llvm {
class raw_ostream;
}

View File

@@ -39,6 +39,10 @@
#include <type_traits>
#include <variant>
// Some environments, viz. glibc 2.17, allow the macro HUGE
// to leak out of <math.h>.
#undef HUGE
namespace Fortran::evaluate {
// Utilities