|
@@ -679,6 +679,9 @@ iconv = not_found
|
|
curses = not_found
|
|
curses = not_found
|
|
if have_system and not get_option('curses').disabled()
|
|
if have_system and not get_option('curses').disabled()
|
|
curses_test = '''
|
|
curses_test = '''
|
|
|
|
+ #if defined(__APPLE__) || defined(__OpenBSD__)
|
|
|
|
+ #define _XOPEN_SOURCE_EXTENDED 1
|
|
|
|
+ #endif
|
|
#include <locale.h>
|
|
#include <locale.h>
|
|
#include <curses.h>
|
|
#include <curses.h>
|
|
#include <wchar.h>
|
|
#include <wchar.h>
|
|
@@ -702,7 +705,7 @@ if have_system and not get_option('curses').disabled()
|
|
endif
|
|
endif
|
|
endforeach
|
|
endforeach
|
|
msg = get_option('curses').enabled() ? 'curses library not found' : ''
|
|
msg = get_option('curses').enabled() ? 'curses library not found' : ''
|
|
- curses_compile_args = ['-DNCURSES_WIDECHAR']
|
|
|
|
|
|
+ curses_compile_args = ['-DNCURSES_WIDECHAR=1']
|
|
if curses.found()
|
|
if curses.found()
|
|
if cc.links(curses_test, args: curses_compile_args, dependencies: [curses])
|
|
if cc.links(curses_test, args: curses_compile_args, dependencies: [curses])
|
|
curses = declare_dependency(compile_args: curses_compile_args, dependencies: [curses])
|
|
curses = declare_dependency(compile_args: curses_compile_args, dependencies: [curses])
|