[libc++][NFC] Add MVS guard for locale_mgmt_zos.h

This header need not be included on non-z/OS IBM platforms (and indeed
will add nothing when it is), so add a guard. This let's us remove the
header without things breaking when shipping libc++ for AIX.

Reviewed By: hubert.reinterpretcast, fanbo-meng

Differential Revision: https://reviews.llvm.org/D129493
This commit is contained in:
David Tenty 2022-07-11 11:36:19 -04:00
parent a844378b2b
commit 4a009797ec
1 changed files with 3 additions and 0 deletions

View File

@ -10,7 +10,10 @@
#ifndef _LIBCPP_SUPPORT_IBM_XLOCALE_H
#define _LIBCPP_SUPPORT_IBM_XLOCALE_H
#if defined(__MVS__)
#include <__support/ibm/locale_mgmt_zos.h>
#endif // defined(__MVS__)
#include <stdarg.h>
#include "cstdlib"