[libcxx-commits] [libcxx] 121f27f - [libc++] Only include_next <wctype.h> if it exists

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Tue Nov 17 10:15:47 PST 2020


Author: Louis Dionne
Date: 2020-11-17T13:14:36-05:00
New Revision: 121f27f3ac811c2add4d43f78847bfb14ad0175d

URL: https://github.com/llvm/llvm-project/commit/121f27f3ac811c2add4d43f78847bfb14ad0175d
DIFF: https://github.com/llvm/llvm-project/commit/121f27f3ac811c2add4d43f78847bfb14ad0175d.diff

LOG: [libc++] Only include_next <wctype.h> if it exists

This allows building on platforms that don't provide that header.

Added: 
    

Modified: 
    libcxx/include/wctype.h

Removed: 
    


################################################################################
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
 


        


More information about the libcxx-commits mailing list