This is an archive of the discontinued LLVM Phabricator instance.

[builtins] Avoid enum name conflicts with fenv.h
ClosedPublic

Authored by arichardson on Mar 10 2021, 4:03 AM.

Details

Summary

After a follow-up change (D98332) this header can be included the same time
as fenv.h when running the tests. To avoid enum members conflicting with
the macros/enums defined in the host fenv.h, prefix them with CRT_.

Diff Detail

Event Timeline

arichardson requested review of this revision.Mar 10 2021, 4:03 AM
arichardson created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptMar 10 2021, 4:03 AM
Herald added a subscriber: Restricted Project. · View Herald Transcript
  • fix one FE_ROUND_MODE I missed in the previous version

clang-format

peter.smith accepted this revision.Mar 31 2021, 6:27 AM

LGTM. Seems sensible to avoid a name clash with a standard header.

This revision is now accepted and ready to land.Mar 31 2021, 6:27 AM
This revision was landed with ongoing or failed builds.Apr 9 2021, 10:50 AM
This revision was automatically updated to reflect the committed changes.