From 8cc30a8ca06bc5bad09c18d06298ad8bdc5114da Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Sat, 1 Oct 2016 13:46:55 +0100 Subject: [PATCH] Enable _XOPEN_SOURCE=700 on cygwin to get the wcwidth function --- src/Makefile | 1 + src/unicode.hh | 1 + 2 files changed, 2 insertions(+) diff --git a/src/Makefile b/src/Makefile index 0dc94c0d..c5100470 100644 --- a/src/Makefile +++ b/src/Makefile @@ -50,6 +50,7 @@ else ifeq ($(os),DragonFly) CPPFLAGS += -I/usr/local/include LDFLAGS += -L/usr/local/lib else ifneq (,$(findstring CYGWIN,$(os))) + CXXFLAGS += -D_XOPEN_SOURCE=700 LIBS += -lncursesw -lboost_regex -ldbghelp else LIBS += -lncursesw -lboost_regex diff --git a/src/unicode.hh b/src/unicode.hh index 0b84d9db..c809163a 100644 --- a/src/unicode.hh +++ b/src/unicode.hh @@ -2,6 +2,7 @@ #define unicode_hh_INCLUDED #include +#include #include namespace Kakoune