From 3ad05f9312d60f2cc6a3a5070dd8d4fd9d2cbd0a Mon Sep 17 00:00:00 2001 From: Binrui Dong Date: Wed, 20 Apr 2022 01:52:07 +0800 Subject: [PATCH] Fix compile error in experimental release on macOS (#56918) --- src/ncurses_def.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ncurses_def.cpp b/src/ncurses_def.cpp index f54fcce6ab122..53436721c2e32 100644 --- a/src/ncurses_def.cpp +++ b/src/ncurses_def.cpp @@ -9,7 +9,9 @@ // ncurses can define some functions as macros, but we need those identifiers // to be unchanged by the preprocessor, as we use them as function names. #define NCURSES_NOMACROS +#if !defined(__APPLE__) #define NCURSES_WIDECHAR 1 +#endif #if defined(__CYGWIN__) #include #else