diff options
Diffstat (limited to 'ext/SDBM_File/sdbm/sdbm.h')
-rw-r--r-- | ext/SDBM_File/sdbm/sdbm.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/ext/SDBM_File/sdbm/sdbm.h b/ext/SDBM_File/sdbm/sdbm.h index 53fc366801..28e5e873f6 100644 --- a/ext/SDBM_File/sdbm/sdbm.h +++ b/ext/SDBM_File/sdbm/sdbm.h @@ -179,10 +179,14 @@ extern long sdbm_hash proto((const char *, int)); # define realloc Perl_realloc # define free Perl_mfree -Malloc_t Perl_malloc proto((MEM_SIZE nbytes)); -Malloc_t Perl_calloc proto((MEM_SIZE elements, MEM_SIZE size)); -Malloc_t Perl_realloc proto((Malloc_t where, MEM_SIZE nbytes)); -Free_t Perl_mfree proto((Malloc_t where)); +#ifdef __cplusplus +#define EXTERN_C extern "C" +#endif + +EXTERN_C Malloc_t Perl_malloc proto((MEM_SIZE nbytes)); +EXTERN_C Malloc_t Perl_calloc proto((MEM_SIZE elements, MEM_SIZE size)); +EXTERN_C Malloc_t Perl_realloc proto((Malloc_t where, MEM_SIZE nbytes)); +EXTERN_C Free_t Perl_mfree proto((Malloc_t where)); #endif /* MYMALLOC */ #ifdef I_STRING |