summaryrefslogtreecommitdiff
path: root/mathoms.c
diff options
context:
space:
mode:
Diffstat (limited to 'mathoms.c')
-rw-r--r--mathoms.c8
1 files changed, 2 insertions, 6 deletions
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 */