Enable _XOPEN_SOURCE=700 on cygwin to get the wcwidth function
This commit is contained in:
parent
249ec4835e
commit
8cc30a8ca0
|
@ -50,6 +50,7 @@ else ifeq ($(os),DragonFly)
|
||||||
CPPFLAGS += -I/usr/local/include
|
CPPFLAGS += -I/usr/local/include
|
||||||
LDFLAGS += -L/usr/local/lib
|
LDFLAGS += -L/usr/local/lib
|
||||||
else ifneq (,$(findstring CYGWIN,$(os)))
|
else ifneq (,$(findstring CYGWIN,$(os)))
|
||||||
|
CXXFLAGS += -D_XOPEN_SOURCE=700
|
||||||
LIBS += -lncursesw -lboost_regex -ldbghelp
|
LIBS += -lncursesw -lboost_regex -ldbghelp
|
||||||
else
|
else
|
||||||
LIBS += -lncursesw -lboost_regex
|
LIBS += -lncursesw -lboost_regex
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
#define unicode_hh_INCLUDED
|
#define unicode_hh_INCLUDED
|
||||||
|
|
||||||
#include <wctype.h>
|
#include <wctype.h>
|
||||||
|
#include <wchar.h>
|
||||||
#include <locale>
|
#include <locale>
|
||||||
|
|
||||||
namespace Kakoune
|
namespace Kakoune
|
||||||
|
|
Loading…
Reference in New Issue
Block a user