This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
perl.h: move PERL_GET_CONTEXT fallbacks earlier
authorDavid Mitchell <davem@iabyn.com>
Tue, 3 Jun 2014 09:06:20 +0000 (10:06 +0100)
committerDavid Mitchell <davem@iabyn.com>
Tue, 3 Jun 2014 09:06:20 +0000 (10:06 +0100)
commitcf6e31e92ce25aab729563d4e1451cbf65e5138b
tree9eb9f31eb0ae5196d92a0d6cabbc74edf9f16c5a
parente09da698b42c898af9dba142f97e619c013fb501
perl.h: move PERL_GET_CONTEXT fallbacks earlier

A recent commit added a 'dTHX' to inline.h for the first time;
this broke -DPERL_GLOBAL_STRUCT* builds.

The fix is to move the 'fallback' definitions in perl.h, such as

    #ifndef PERL_GET_CONTEXT
    #  define PERL_GET_CONTEXT             PERL_GET_INTERP

to earlier in the file so that they come before

    #include "inline.h"
perl.h