2011/3/31 Mark Dootson <[email protected]>:
> Hi,
>
> $Config{ptrsize} seems the definitive method. It is 4 or 8 for 32bit / 64bit
> Perl and gets you the right answer if you are running a 32 bit Perl on 64
> bit Windows.
>
> I think $Config{ivsize} as used in current pp makefiles should always work
> too, but using $Config{ptrsize} seems more directly connected to the
> question.
$Config{ivsize} can be fooled, $Config{ptrsize} not.
In fact cygwin is shipped with 64bit ivsize=8 on 32-bit windows.
--
Reini Urban
http://phpwiki.org/ http://murbreak.at/