README: explain further musl-specific tweaks
[rofl0r-df-libgraphics.git] / g_src / curses.h
blob4234a0db569ca1b45847eb61b8e2538bd3ab994d
1 #ifndef DF_CURSES_H
2 #define DF_CURSES_H
4 #ifdef CURSES
6 extern "C" {
7 #ifndef __APPLE__
8 #ifdef unix
9 #ifdef HAVE_NCURSESW
10 /* defining _XOPEN_SOURCE_EXTENDED activates NCURSES_WIDECHAR support */
11 #define _XOPEN_SOURCE_EXTENDED
12 #endif
13 #ifdef HAVE_NCURSESW_CURSES_H
14 # include <ncursesw/curses.h>
15 #else
16 # include <ncurses.h>
17 #endif
18 # undef COLOR_BLUE
19 # undef COLOR_CYAN
20 # undef COLOR_RED
21 # undef COLOR_YELLOW
22 # include <dlfcn.h>
23 #endif
24 #endif
27 #ifndef __APPLE__
28 #ifdef unix
29 extern "C" {
30 void init_curses();
31 extern WINDOW **stdscr_p;
33 #endif
34 #endif
36 #endif
38 #endif