Putting Readline code inside #ifdefs
This commit is contained in:
committed by
Paul Beckingham
parent
60a7d2128e
commit
a5f55bf2f4
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user