From: Perl 5 Porters Date: Thu, 5 Sep 1996 23:59:55 +0000 (+0000) Subject: Make a little more C++-friendly for IBM's CSET++ compiler. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=598a3d6448f29eab4dfa57fcd5d9fcb83097c875;p=p5sagit%2Fp5-mst-13.2.git Make a little more C++-friendly for IBM's CSET++ compiler. --- diff --git a/handy.h b/handy.h index 2d0e81f..d222cc0 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))))