diff options
author | George Greer <perl@greerga.m-l.org> | 2010-07-21 10:11:51 +0200 |
---|---|---|
committer | Steffen Mueller <smueller@cpan.org> | 2010-07-21 10:11:51 +0200 |
commit | 710891042a142a482afd4eed1f3b1feb27a9c504 (patch) | |
tree | 98a2ce9f72478d5d9ecaaa8e94b00bed357738ae /util.c | |
parent | aca72608d124e3b2f36f1612a305708869f7b365 (diff) | |
download | perl-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |