This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
C++ compiler fix for util.c
authorGeorge Greer <perl@greerga.m-l.org>
Wed, 21 Jul 2010 08:11:51 +0000 (10:11 +0200)
committerSteffen Mueller <smueller@cpan.org>
Wed, 21 Jul 2010 08:11:51 +0000 (10:11 +0200)
commit710891042a142a482afd4eed1f3b1feb27a9c504
tree98a2ce9f72478d5d9ecaaa8e94b00bed357738ae
parentaca72608d124e3b2f36f1612a305708869f7b365
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').
util.c