diff options
author | Louis Dionne <ldionne@apple.com> | 2020-11-17 13:14:36 -0500 |
---|---|---|
committer | Louis Dionne <ldionne@apple.com> | 2020-11-17 13:14:36 -0500 |
commit | 121f27f3ac811c2add4d43f78847bfb14ad0175d (patch) | |
tree | ff03d2767a6eb3b8695a02069e61cfebdfd72ee5 /libcxx | |
parent | 1d7abcf99e3d8f9ac7e24be5758da7cfef656400 (diff) | |
download | llvm-project-121f27f3ac811c2add4d43f78847bfb14ad0175d.tar.gz |
[libc++] Only include_next <wctype.h> if it exists
This allows building on platforms that don't provide that header.
Diffstat (limited to 'libcxx')
-rw-r--r-- | libcxx/include/wctype.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libcxx/include/wctype.h b/libcxx/include/wctype.h index bdcf37234cc3..2d4c36d9921d 100644 --- a/libcxx/include/wctype.h +++ b/libcxx/include/wctype.h @@ -50,7 +50,9 @@ wctrans_t wctrans(const char* property); #pragma GCC system_header #endif -#include_next <wctype.h> +#if __has_include_next(<wctype.h>) +# include_next <wctype.h> +#endif #ifdef __cplusplus |