summaryrefslogtreecommitdiff
path: root/ext/SDBM_File
diff options
context:
space:
mode:
Diffstat (limited to 'ext/SDBM_File')
-rw-r--r--ext/SDBM_File/sdbm/sdbm.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/ext/SDBM_File/sdbm/sdbm.c b/ext/SDBM_File/sdbm/sdbm.c
index 46be83e560..f01a08a145 100644
--- a/ext/SDBM_File/sdbm/sdbm.c
+++ b/ext/SDBM_File/sdbm/sdbm.c
@@ -37,10 +37,17 @@
#include <errno.h> /* See notes in perl.h about avoiding
extern int errno; */
+#ifdef __cplusplus
+extern "C" {
+#endif
extern Malloc_t malloc proto((MEM_SIZE));
extern Free_t free proto((Malloc_t));
+#ifdef __cplusplus
+}
+#endif
+
/*
* forward
*/