Enable _XOPEN_SOURCE=700 on cygwin to get the wcwidth function

This commit is contained in:
Maxime Coste 2016-10-01 13:46:55 +01:00
parent 249ec4835e
commit 8cc30a8ca0
2 changed files with 2 additions and 0 deletions

View File

@ -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

View File

@ -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