diff options
Diffstat (limited to 'contrib/llvm-project/libcxx/include/locale.h')
-rw-r--r-- | contrib/llvm-project/libcxx/include/locale.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/contrib/llvm-project/libcxx/include/locale.h b/contrib/llvm-project/libcxx/include/locale.h index 81cfcee57fd7..20910fa2f97e 100644 --- a/contrib/llvm-project/libcxx/include/locale.h +++ b/contrib/llvm-project/libcxx/include/locale.h @@ -1,5 +1,5 @@ // -*- C++ -*- -//===---------------------------- locale.h --------------------------------===// +//===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. @@ -36,13 +36,15 @@ Functions: #include <__config> #if defined(_LIBCPP_HAS_NO_LOCALIZATION) -# error "Localization is not supported by this configuration of libc++" +# error "<locale.h> is not supported since libc++ has been configured without support for localization." #endif #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) -# pragma GCC system_header +# pragma GCC system_header #endif -#include_next <locale.h> +#if __has_include_next(<locale.h>) +# include_next <locale.h> +#endif -#endif // _LIBCPP_LOCALE_H +#endif // _LIBCPP_LOCALE_H |