Change 5677

tony_smith (Tony Smith)
Tony Smith committed this change into //guest/tony_smith/perforce/API/Perl
Request Review
Download .zip
Rework P4Perl build script to support 2006.1 API.
There were
some sweeping changes in the 2006.1 API which did away with the
old const_char definition. Unfortunately, since P4Perl has to
build with older APIs, I can't quite do the same. This change
tweaks the way that Makefile.PL determines the definition for
const_char so that (a) it's always 'const char' when a 2006.1
or later API is used, (b) it uses the platform specific hint
for older APIs (c) it falls back on 'char' in the absence of a
hint.

In an ideal world, we'd be able to compute the options based on
(a) OS, (b) compiler version (c) Perl version and (d) API version,
but that's tough to get right.

No functional change.
  • Files 9
  • Comments 0
9 edited 0 added 0 deleted
P4/Changes#32
Loading...
P4/META.yml#26
Loading...
P4/Makefile.PL#7
Loading...
P4/P4.pm#33
Loading...
P4/hints/cygwin.pl#2
Loading...
P4/hints/darwin.pl#2
Loading...
P4/hints/linux.pl#3
Loading...
P4/hints/solaris.pl#2
Loading...
current/P4.tar.gz#32
Loading...
Tip: Use n and p to cycle through the changes.