From fa92f1a858570518fcb645f0d26ad54b4ed4083b Mon Sep 17 00:00:00 2001 From: Kevin Granade Date: Sun, 12 May 2024 07:20:21 -0700 Subject: [PATCH] Define _XOPEN_SOURCE_EXTENDED on mac localized curses builds to enable wide character support (#73697) --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 229181372522d..0dd15eb9fb472 100644 --- a/Makefile +++ b/Makefile @@ -597,8 +597,9 @@ ifeq ($(NATIVE), osx) endif endif ifeq ($(LOCALIZE), 1) - ifeq ($(MACPORTS), 1) - ifneq ($(TILES), 1) + ifneq ($(TILES), 1) + CXXFLAGS += -D_XOPEN_SOURCE_EXTENDED + ifeq ($(MACPORTS), 1) CXXFLAGS += -I$(shell ncursesw6-config --includedir) LDFLAGS += -L$(shell ncursesw6-config --libdir) endif