diff options
author | agc <agc@pkgsrc.org> | 1998-07-24 08:56:18 +0000 |
---|---|---|
committer | agc <agc@pkgsrc.org> | 1998-07-24 08:56:18 +0000 |
commit | 6da110286c64a5a90b2dd2e993900b4db23c2cff (patch) | |
tree | 91780f477673b472b64a42451960a46ec3b09b4d /devel/readline | |
parent | a75a2272cdba8bba4c8412d13c47b6c1654fca7a (diff) | |
download | pkgsrc-6da110286c64a5a90b2dd2e993900b4db23c2cff.tar.gz |
Make it safe to use the readline library in C++ programs.
Diffstat (limited to 'devel/readline')
-rw-r--r-- | devel/readline/patches/patch-ag | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/devel/readline/patches/patch-ag b/devel/readline/patches/patch-ag new file mode 100644 index 00000000000..79c6c3a8002 --- /dev/null +++ b/devel/readline/patches/patch-ag @@ -0,0 +1,24 @@ +--- readline.h.orig Mon Sep 8 21:00:15 1997 ++++ readline.h Fri Jul 24 08:38:22 1998 +@@ -23,6 +23,10 @@ + #if !defined (_READLINE_H_) + #define _READLINE_H_ + ++#ifdef __cplusplus ++extern "C" { ++#endif ++ + #if defined (READLINE_LIBRARY) + # include "keymaps.h" + # include "tilde.h" +@@ -411,6 +415,10 @@ + + #if !defined (savestring) + extern char *savestring (); /* XXX backwards compatibility */ ++#endif ++ ++#ifdef __cplusplus ++} + #endif + + #endif /* _READLINE_H_ */ |