summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPavel Labath <labath@google.com>2018-06-11 09:32:58 +0000
committerPavel Labath <labath@google.com>2018-06-11 09:32:58 +0000
commitdee49301104e10aabc9a5bdba34a29cd04af7b99 (patch)
treea90e15ff3a7ddbc731d443beaa9cd02269606ee8
parentdbd98b3a090885328305a98edd0b9747130ea41a (diff)
downloadbcm5719-llvm-dee49301104e10aabc9a5bdba34a29cd04af7b99.tar.gz
bcm5719-llvm-dee49301104e10aabc9a5bdba34a29cd04af7b99.zip
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. llvm-svn: 334397
-rw-r--r--lldb/include/lldb/Host/Editline.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lldb/include/lldb/Host/Editline.h b/lldb/include/lldb/Host/Editline.h
index cb40f1e6917..beb96e7c492 100644
--- a/lldb/include/lldb/Host/Editline.h
+++ b/lldb/include/lldb/Host/Editline.h
@@ -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>
OpenPOWER on IntegriCloud