tty-ncurses.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. #ifndef MC__TTY_NCURSES_H
  2. #define MC__TTY_NCURSES_H
  3. /* for cchar_t, getcchar(), setcchar() */
  4. #ifndef _XOPEN_SOURCE_EXTENDED
  5. #define _XOPEN_SOURCE_EXTENDED
  6. #endif
  7. #ifdef USE_NCURSES
  8. #ifdef HAVE_NCURSES_CURSES_H
  9. #include <ncurses/curses.h>
  10. #elif defined(HAVE_NCURSES_NCURSES_H)
  11. #include <ncurses/ncurses.h>
  12. #elif defined(HAVE_NCURSESW_CURSES_H)
  13. #include <ncursesw/curses.h>
  14. #elif defined(HAVE_NCURSES_HCURSES_H) || defined(HAVE_NCURSES_H)
  15. #include <ncurses.h>
  16. #else
  17. #include <curses.h>
  18. #endif
  19. #endif /* USE_NCURSES */
  20. #ifdef USE_NCURSESW
  21. #include <ncursesw/curses.h>
  22. #endif /* USE_NCURSESW */
  23. /* netbsd-libcurses doesn't define NCURSES_CONST */
  24. #ifndef NCURSES_CONST
  25. #define NCURSES_CONST const
  26. #endif
  27. /* do not draw shadows if NCurses is built with --disable-widec */
  28. #if defined(NCURSES_WIDECHAR) && NCURSES_WIDECHAR
  29. #define ENABLE_SHADOWS 1
  30. #endif
  31. /*** typedefs(not structures) and defined constants **********************************************/
  32. /*** enums ***************************************************************************************/
  33. /*** structures declarations (and typedefs of structures)*****************************************/
  34. /*** global variables defined in .c file *********************************************************/
  35. /*** declarations of public functions ************************************************************/
  36. /*** inline functions ****************************************************************************/
  37. #endif /* MC_TTY_NCURSES_H */