Make a little more C++-friendly for IBM's CSET++ compiler.
authorPerl 5 Porters <perl5-porters@africa.nicoh.com>
Thu, 5 Sep 1996 23:59:55 +0000 (23:59 +0000)
committerAndy Dougherty <doughera@lafcol.lafayette.edu>
Thu, 5 Sep 1996 23:59:55 +0000 (23:59 +0000)
handy.h

diff --git a/handy.h b/handy.h
index 2d0e81f..d222cc0 100644 (file)
--- 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))))