summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--perl.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/perl.h b/perl.h
index df90a651be..8953c6a0d8 100644
--- a/perl.h
+++ b/perl.h
@@ -2202,7 +2202,6 @@ struct ufuncs {
* like the following:
#ifndef PERL_MG_UFUNC
-/* the old way, without pTHX_ */
#define PERL_MG_UFUNC(name,ix,sv) I32 name(IV ix, SV *sv)
#endif
@@ -2216,7 +2215,9 @@ static PERL_MG_UFUNC(foo_get, index, val)
*/
+#ifndef PERL_MG_UFUNC
#define PERL_MG_UFUNC(name,ix,sv) I32 name(pTHX_ IV ix, SV *sv)
+#endif
/* Fix these up for __STDC__ */
#ifndef DONT_DECLARE_STD