[libcxx-commits] [libcxx] 4a00979 - [libc++][NFC] Add MVS guard for locale_mgmt_zos.h

David Tenty via libcxx-commits libcxx-commits at lists.llvm.org
Tue Jul 12 11:17:44 PDT 2022


Author: David Tenty
Date: 2022-07-12T14:15:42-04:00
New Revision: 4a009797ec61178e9dddd62fc079bd8f67257147

URL: https://github.com/llvm/llvm-project/commit/4a009797ec61178e9dddd62fc079bd8f67257147
DIFF: https://github.com/llvm/llvm-project/commit/4a009797ec61178e9dddd62fc079bd8f67257147.diff

LOG: [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

Added: 
    

Modified: 
    libcxx/include/__support/ibm/xlocale.h

Removed: 
    


################################################################################
diff  --git a/libcxx/include/__support/ibm/xlocale.h b/libcxx/include/__support/ibm/xlocale.h
index 11c1847e4c7d..5a09212c6a92 100644
--- a/libcxx/include/__support/ibm/xlocale.h
+++ b/libcxx/include/__support/ibm/xlocale.h
@@ -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"


        


More information about the libcxx-commits mailing list