mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-09-08 06:10:36 +02:00
Putting Readline code inside #ifdefs
This commit is contained in:
parent
60a7d2128e
commit
a5f55bf2f4
6 changed files with 23 additions and 20 deletions
|
@ -33,17 +33,6 @@
|
|||
#include <stdio.h>
|
||||
#include <wordexp.h>
|
||||
|
||||
namespace rl
|
||||
{
|
||||
// Wrapping readline.h in a namespace to
|
||||
// avoid cluttering the global namespace.
|
||||
extern "C"
|
||||
{
|
||||
#include <readline/readline.h>
|
||||
#include <readline/history.h>
|
||||
}
|
||||
}
|
||||
|
||||
// Static class that offers a C++ API to readline C functions.
|
||||
class Readline
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue