summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authoragc <agc>1998-07-23 12:10:14 +0000
committeragc <agc>1998-07-23 12:10:14 +0000
commit64a15297bb0eefa1f5372ab5b3ff35c7d1fee3d9 (patch)
tree892a68893ddb06ae67bb2f71f841923000b9d583 /devel
parentb936dc04ed4c58c679358b502caedfaad6875512 (diff)
downloadpkgsrc-64a15297bb0eefa1f5372ab5b3ff35c7d1fee3d9.tar.gz
Use an ``extern "C"'' style block in case the history.h file is included
in a C++ application.
Diffstat (limited to 'devel')
-rw-r--r--devel/readline/patches/patch-af23
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_ */