summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
authorGeorge Greer <perl@greerga.m-l.org>2010-07-21 10:11:51 +0200
committerSteffen Mueller <smueller@cpan.org>2010-07-21 10:11:51 +0200
commit710891042a142a482afd4eed1f3b1feb27a9c504 (patch)
tree98a2ce9f72478d5d9ecaaa8e94b00bed357738ae /util.c
parentaca72608d124e3b2f36f1612a305708869f7b365 (diff)
downloadperl-710891042a142a482afd4eed1f3b1feb27a9c504.tar.gz
C++ compiler fix for util.c
Even with all of the changes, we still die on a strchr() call now because glibc provides "correct" strchr prototypes rather than the C ones. C: char *strchr(const char *s, int c) C++: const char *strchr(const char *s, int c) char *strchr( char *s, int c) and of course C++ doesn't let you convert a 'const char *' to a 'char *' so boom on util.c:3972 in Perl_grok_bslash_o (due to 'e').
Diffstat (limited to 'util.c')
-rw-r--r--util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util.c b/util.c
index 6fdc6534a9..5bfe354b71 100644
--- a/util.c
+++ b/util.c
@@ -3950,7 +3950,7 @@ Perl_grok_bslash_o(pTHX_ const char *s, UV *uv, STRLEN *len, const bool output_w
* output_warning says whether to output any warning messages, or suppress
* them
*/
- char* e;
+ const char* e;
STRLEN numbers_len;
I32 flags = PERL_SCAN_ALLOW_UNDERSCORES
| PERL_SCAN_DISALLOW_PREFIX