diff options
author | Sahil Siddiq <icegambit91@gmail.com> | 2023-02-07 22:56:57 +0530 |
---|---|---|
committer | BenBE <BenBE@geshi.org> | 2023-05-22 12:07:16 +0200 |
commit | 3fc286257d3f40733d73722a0ea6b2ad1fd1a550 (patch) | |
tree | 494fa12d41aed8b6823209c467fabe2413e376f9 /ProvideTerm.h | |
parent | f77ea80b8c6aa65329a66b9bcf3d1fa665fe01cd (diff) |
Changes in configuration to identify location of 'term.h'
* ProvideTerm.h: New file
* Update configure.ac to detect term.h
* Update iwyu/htop.imp
* Add ProvideTerm.h to Makefile
Co-authored-by: BenBE <BenBE@geshi.org>
Diffstat (limited to 'ProvideTerm.h')
-rw-r--r-- | ProvideTerm.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/ProvideTerm.h b/ProvideTerm.h new file mode 100644 index 00000000..0e07b1c4 --- /dev/null +++ b/ProvideTerm.h @@ -0,0 +1,24 @@ +#ifndef HEADER_ProvideTerm +#define HEADER_ProvideTerm +/* +htop - Filename.h +(C) 2023 htop dev team +Released under the GNU GPLv2+, see the COPYING file +in the source distribution for its full text. +*/ + +#include "config.h" // IWYU pragma: keep + +// IWYU pragma: begin_exports + +#if defined(HAVE_NCURSESW_TERM_H) +#include <ncursesw/term.h> +#elif defined(HAVE_NCURSES_TERM_H) +#include <ncurses/term.h> +#elif defined(HAVE_TERM_H) +#include <term.h> +#endif + +// IWYU pragma: end_exports + +#endif // HEADER_ProvideTerm |