[libcxx][AIX] Explicitly include localedef.h in locale.cpp
authorDavid Tenty <daltenty@ibm.com>
Tue, 12 Oct 2021 15:53:12 +0000 (11:53 -0400)
committerDavid Tenty <daltenty@ibm.com>
Tue, 12 Oct 2021 16:00:03 +0000 (12:00 -0400)
commit1112b7bad851c78af2159d39c7bff670a9c77da1
tree64c0c99c0f0236bae7c3546f081daea2b5f2d63b
parent9fc35c306cfd61d069633a676fe2a6c56df11fe1
[libcxx][AIX] Explicitly include localedef.h in locale.cpp

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.

Reviewed By: #libc, ldionne

Differential Revision: https://reviews.llvm.org/D111239
libcxx/src/locale.cpp