Skip to content

Commit

Permalink
Turn on LLDB_EDITLINE_USE_WCHAR on NetBSD
Browse files Browse the repository at this point in the history
Summary: The editline(3) library in NetBSD is by default internally wide.

Reviewers: clayborg, emaste

Subscribers: joerg, lldb-commits

Differential Revision: http://reviews.llvm.org/D20188

llvm-svn: 269330
  • Loading branch information
krytarowski committed May 12, 2016
1 parent 042ac2c commit eab80e5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lldb/include/lldb/Host/Editline.h
Expand Up @@ -27,11 +27,12 @@

#include <sstream>
#include <vector>
#include <locale>

// components needed to handle wide characters ( <codecvt>, codecvt_utf8, libedit built with '--enable-widec' )
// are not consistenly available on non-OSX platforms. The wchar_t versions of libedit functions will only be
// are available on some platforms. The wchar_t versions of libedit functions will only be
// used in cases where this is true. This is a compile time dependecy, for now selected per target Platform
#if defined (__APPLE__)
#if defined (__APPLE__) || defined(__NetBSD__)
#define LLDB_EDITLINE_USE_WCHAR 1
#include <codecvt>
#else
Expand Down

0 comments on commit eab80e5

Please sign in to comment.