From 361ec98e5d8e7a23ae6e2670b72cb10c32d38c22 Mon Sep 17 00:00:00 2001 From: "Craig A. Berry" Date: Thu, 24 May 2012 13:35:34 -0500 Subject: Use the (START|END)_EXTERN_C macros. We seem to use them everywhere else in core. --- mathoms.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'mathoms.c') diff --git a/mathoms.c b/mathoms.c index eb64c777ee..cd32b9d440 100644 --- a/mathoms.c +++ b/mathoms.c @@ -41,9 +41,7 @@ /* Not all of these have prototypes elsewhere, so do this to get * non-mangled names. */ -#ifdef __cplusplus -extern "C" { -#endif +START_EXTERN_C PERL_CALLCONV OP * Perl_ref(pTHX_ OP *o, I32 type); PERL_CALLCONV void Perl_sv_unref(pTHX_ SV *sv); @@ -1204,9 +1202,7 @@ Perl_to_utf8_upper(pTHX_ const U8 *p, U8* ustrp, STRLEN *lenp) return _to_utf8_upper_flags(p, ustrp, lenp, FALSE, NULL); } -#ifdef __cplusplus -} -#endif +END_EXTERN_C #endif /* NO_MATHOMS */ -- cgit v1.2.1