This is an archive of the discontinued LLVM Phabricator instance.

[libcxx][AIX] Explicitly include localedef.h in locale.cpp
ClosedPublic

Authored by daltenty on Oct 6 2021, 9:24 AM.

Details

Summary

This header was transitively included to provide the definition of
__lc_ctype_ptr that we use on AIX, but that is fragile as it depends on
the settings of compatibility macros, so we explicitly include it here
to avoid that scenario.

Diff Detail

Event Timeline

daltenty requested review of this revision.Oct 6 2021, 9:24 AM
daltenty created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptOct 6 2021, 9:24 AM
Herald added a reviewer: Restricted Project. · View Herald Transcript
ldionne accepted this revision.Oct 12 2021, 8:06 AM
ldionne added a subscriber: ldionne.

LGTM

libcxx/src/locale.cpp
27–29

For consistency with surrounding code.

This revision is now accepted and ready to land.Oct 12 2021, 8:06 AM
daltenty updated this revision to Diff 379060.Oct 12 2021, 8:53 AM
daltenty marked an inline comment as done.
  • Apply comments
daltenty updated this revision to Diff 379062.Oct 12 2021, 8:59 AM
  • Rebase onto latest main
This revision was landed with ongoing or failed builds.Oct 12 2021, 9:00 AM
This revision was automatically updated to reflect the committed changes.