diff options
author | Karl Williamson <khw@cpan.org> | 2016-11-19 05:57:46 -0700 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2018-01-14 11:48:22 -0700 |
commit | 71d5fd3cfb0825e2f6e4e308b5890c6927d52c3f (patch) | |
tree | 00cd3e5a985a8d3b0bc7fed776b5909d7e39c6ad /dist | |
parent | 4d7e83bba2968618bd9026ce17ae87f5529e5f38 (diff) | |
download | perl-71d5fd3cfb0825e2f6e4e308b5890c6927d52c3f.tar.gz |
Devel-PPPort: Rmv impediment to compiling under C++11
C++11 changed from earlier versions to require space between the end of
a string literal and a macro, so that a feature can unambiguously be
added to the language. Starting in g++ 6.2, the compiler emits a
deprecation warning when there isn't a space (presumably so that future
versions can support C++11).
Although not required by the C++11 change, this patch also makes sure
there is space after a macro call, before a string literal.
Code and modules included with the Perl core need to be compilable using
C++. This is so that perl can be embedded in C++ programs. (Actually,
only the hdr files need to be so compilable, but it would be hard to
test that just the hdrs are compilable.) So we need to accommodate
changes to the C++ language.
Diffstat (limited to 'dist')
-rw-r--r-- | dist/Devel-PPPort/parts/inc/misc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dist/Devel-PPPort/parts/inc/misc b/dist/Devel-PPPort/parts/inc/misc index 2b008e1e44..36ee57fe49 100644 --- a/dist/Devel-PPPort/parts/inc/misc +++ b/dist/Devel-PPPort/parts/inc/misc @@ -626,7 +626,7 @@ SVf(x) SV *x PPCODE: #if { VERSION >= 5.004 } - x = sv_2mortal(newSVpvf("[%"SVf"]", SVfARG(x))); + x = sv_2mortal(newSVpvf("[%" SVf "]", SVfARG(x))); #endif XPUSHs(x); XSRETURN(1); |