tty-ncurses.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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. /*** typedefs(not structures) and defined constants **********************************************/
  28. /*** enums ***************************************************************************************/
  29. /*** structures declarations (and typedefs of structures)*****************************************/
  30. /*** global variables defined in .c file *********************************************************/
  31. /*** declarations of public functions ************************************************************/
  32. /*** inline functions ****************************************************************************/
  33. #endif /* MC_TTY_NCURSES_H */