Dual-Life / Devel-PPPort

Perl/Pollution/Portability
9 stars 28 forks source link

ppport.h breaks in C++ #224

Closed FGasper closed 2 years ago

FGasper commented 2 years ago
    PERL_STATIC_INLINE SV* D_PPP_newSVsv_flags(SV *const old, I32 flags)
        {
            dTHX;
            SV *new = newSV(0);
            sv_setsv_flags(new, old, flags);
            return new;
        }

clang, at least, is choking on SV *new.

FGasper commented 2 years ago

Dupe of #222.