[Lldb-commits] [lldb] r334397 - Editline: make #include <codecvt> conditional

Pavel Labath via lldb-commits lldb-commits at lists.llvm.org
Mon Jun 11 02:32:58 PDT 2018


Author: labath
Date: Mon Jun 11 02:32:58 2018
New Revision: 334397

URL: http://llvm.org/viewvc/llvm-project?rev=334397&view=rev
Log:
Editline: make #include <codecvt> conditional

My previous patch made this include unconditional. However, it seems it
is not available everywhere. This patch makes us include it only in
configurations we really need it, which should be enough to unblock the
bots.

Modified:
    lldb/trunk/include/lldb/Host/Editline.h

Modified: lldb/trunk/include/lldb/Host/Editline.h
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/include/lldb/Host/Editline.h?rev=334397&r1=334396&r2=334397&view=diff
==============================================================================
--- lldb/trunk/include/lldb/Host/Editline.h (original)
+++ lldb/trunk/include/lldb/Host/Editline.h Mon Jun 11 02:32:58 2018
@@ -33,7 +33,9 @@
 #define liblldb_Editline_h_
 #if defined(__cplusplus)
 
+#if LLDB_EDITLINE_USE_WCHAR
 #include <codecvt>
+#endif
 #include <locale>
 #include <sstream>
 #include <vector>




More information about the lldb-commits mailing list