diff options
author | Perl 5 Porters <perl5-porters@africa.nicoh.com> | 1996-09-05 23:59:55 +0000 |
---|---|---|
committer | Andy Dougherty <doughera@lafcol.lafayette.edu> | 1996-09-05 23:59:55 +0000 |
commit | 598a3d6448f29eab4dfa57fcd5d9fcb83097c875 (patch) | |
tree | 2970389a95abec1856f284cdd6c6f2d94bac26c0 | |
parent | 676d8cc737af11e5723ce4031e7133979591ee17 (diff) | |
download | perl-598a3d6448f29eab4dfa57fcd5d9fcb83097c875.tar.gz |
Make a little more C++-friendly for IBM's CSET++ compiler.
-rw-r--r-- | handy.h | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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)))) |