ProvideCurses.h 858 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. #ifndef HEADER_ProvideCurses
  2. #define HEADER_ProvideCurses
  3. /*
  4. htop - ProvideCurses.h
  5. (C) 2004,2011 Hisham H. Muhammad
  6. Released under the GNU GPLv2+, see the COPYING file
  7. in the source distribution for its full text.
  8. */
  9. // This header is also used in tests by configure, thus conditionally
  10. // including "config.h".
  11. #if defined(HAVE_CONFIG_H)
  12. #include "config.h" // IWYU pragma: keep
  13. #endif
  14. // IWYU pragma: begin_exports
  15. #if defined(HAVE_NCURSESW_CURSES_H)
  16. #include <ncursesw/curses.h>
  17. #elif defined(HAVE_NCURSES_NCURSES_H)
  18. #include <ncurses/ncurses.h>
  19. #elif defined(HAVE_NCURSES_CURSES_H)
  20. #include <ncurses/curses.h>
  21. #elif defined(HAVE_NCURSES_H)
  22. #include <ncurses.h>
  23. #elif defined(HAVE_CURSES_H)
  24. #include <curses.h>
  25. #endif
  26. #ifdef HAVE_LIBNCURSESW
  27. #include <wchar.h>
  28. #include <wctype.h>
  29. #endif
  30. // IWYU pragma: end_exports
  31. #endif // HEADER_ProvideCurses