diff options
author | agc <agc@pkgsrc.org> | 1998-07-23 12:10:14 +0000 |
---|---|---|
committer | agc <agc@pkgsrc.org> | 1998-07-23 12:10:14 +0000 |
commit | ac1591c0d0163c9be3de1d00cf0df9502abd6b02 (patch) | |
tree | 892a68893ddb06ae67bb2f71f841923000b9d583 /devel/readline/patches | |
parent | 9708b330b3fbf6004fb51f38361cdc0ec7680f2d (diff) | |
download | pkgsrc-ac1591c0d0163c9be3de1d00cf0df9502abd6b02.tar.gz |
Use an ``extern "C"'' style block in case the history.h file is included
in a C++ application.
Diffstat (limited to 'devel/readline/patches')
-rw-r--r-- | devel/readline/patches/patch-af | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/devel/readline/patches/patch-af b/devel/readline/patches/patch-af new file mode 100644 index 00000000000..498c5bab701 --- /dev/null +++ b/devel/readline/patches/patch-af @@ -0,0 +1,23 @@ +--- history.h Thu Jul 23 12:13:23 1998 ++++ history.h Thu May 22 22:37:53 1997 +@@ -22,6 +22,10 @@ + #ifndef _HISTORY_H_ + #define _HISTORY_H_ + ++#ifdef __cplusplus ++extern "C" { ++#endif ++ + #if !defined (_FUNCTION_DEF) + # define _FUNCTION_DEF + typedef int Function (); +@@ -219,5 +223,9 @@ + history expansion should be treated as a special case for the calling + application and not expanded. */ + extern Function *history_inhibit_expansion_function; ++ ++#ifdef __cplusplus ++} ++#endif + + #endif /* !_HISTORY_H_ */ |