Skip to content

Commit

Permalink
* Perl 5.15.1+ changed the Perl_pad_findmy API into Perl_pad_findmy_pvn.
Browse files Browse the repository at this point in the history
  • Loading branch information
audreyt committed Sep 5, 2011
1 parent 6b252a4 commit 05efbe0
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions invoker.xs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@

#include "hook_op_check.h"

#if PERL_REVISION == 5 && PERL_VERSION >= 16
#define pad_findmy(a,b,c) Perl_pad_findmy_pvn(aTHX_ a, b, c)
#else
#if PERL_REVISION == 5 && PERL_VERSION >= 15 && PERL_SUBVERSION >= 1
#define pad_findmy(a,b,c) Perl_pad_findmy_pvn(aTHX_ a, b, c)

#else
#if PERL_REVISION == 5 && PERL_VERSION >= 13

#else
Expand All @@ -19,6 +26,8 @@
#define pad_findmy(a,b,c) Perl_pad_findmy(aTHX_ a)
#endif
#endif
#endif
#endif

typedef struct userdata_St {
hook_op_check_id eval_hook;
Expand Down

2 comments on commit 05efbe0

@clkao
Copy link

@clkao clkao commented on 05efbe0 Sep 5, 2011

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we patch ppport.h instead?

@audreyt
Copy link
Owner Author

@audreyt audreyt commented on 05efbe0 Sep 5, 2011 via email

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.