-
-
Notifications
You must be signed in to change notification settings - Fork 404
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <[email protected]>
- Loading branch information
1 parent
f77ea80
commit 3fc2862
Showing
4 changed files
with
40 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters