summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPerl 5 Porters <perl5-porters@africa.nicoh.com>1996-09-05 23:59:55 +0000
committerAndy Dougherty <doughera@lafcol.lafayette.edu>1996-09-05 23:59:55 +0000
commit598a3d6448f29eab4dfa57fcd5d9fcb83097c875 (patch)
tree2970389a95abec1856f284cdd6c6f2d94bac26c0
parent676d8cc737af11e5723ce4031e7133979591ee17 (diff)
downloadperl-598a3d6448f29eab4dfa57fcd5d9fcb83097c875.tar.gz
Make a little more C++-friendly for IBM's CSET++ compiler.
-rw-r--r--handy.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/handy.h b/handy.h
index 2d0e81f2f1..d222cc0be1 100644
--- a/handy.h
+++ b/handy.h
@@ -184,10 +184,17 @@ typedef U16 line_t;
#ifndef lint
#ifndef LEAKTEST
#ifndef safemalloc
+
+# ifdef __cplusplus
+ extern "C" {
+# endif
Malloc_t safemalloc _((MEM_SIZE));
Malloc_t saferealloc _((Malloc_t, MEM_SIZE));
Free_t safefree _((Malloc_t));
Malloc_t safecalloc _((MEM_SIZE, MEM_SIZE));
+# ifdef __cplusplus
+ }
+# endif
#endif
#ifndef MSDOS
#define New(x,v,n,t) (v = (t*)safemalloc((MEM_SIZE)((n) * sizeof(t))))