Syntactic Confectionery Delight | |
PerlMonks |
Re^3: Perl XS portable uint32_tby syphilis (Archbishop) |
on Jun 06, 2008 at 14:15 UTC ( [id://690677]=note: print w/replies, xml ) | Need Help?? |
The example you provided doesn't match what I'm finding with my 64-bit Microsoft Platform SDK for Windows Server 2003 R2 compiler on Vista 64. This compiler has 32-bit longs and ints - yet those high order bits are, I think, being lost to the "big bit bucket in the sky":
Maybe this behaviour is not reliable across the full range of compilers/systems/architectures. (I honestly wouldn't know.) Unfortunately you can't use sizeof in a preprocessor directive to do the setup one way on a 32 bit machine and another way on a 64 bit one Yes - I was finding that out for myself (probably as you were writing your reply :-) However, you can have the Makefile.PL query $Config{intsize} and $Config{longsize}. And the Makefile.PL can then define symbols (based on those config values) that the pre-processor can make use of. Cheers, Rob
In Section
Seekers of Perl Wisdom
|
|