laziness, impatience, and hubris | |
PerlMonks |
[XS] : "snprintf" portability optionsby syphilis (Archbishop) |
on Sep 15, 2024 at 09:46 UTC ( [id://11161736]=perlquestion: print w/replies, xml ) | Need Help?? |
syphilis has asked for the wisdom of the Perl Monks concerning the following question:
Hi, In Cpanel-JSON-XS-4.38, the XS.xs file contains a few lines like: which is fine on *nix systems but on Windows builds of perl, whenever IVSIZE is 8, it warns: I can fix that for those Windows perls by replacing the occurrence of "%" with "%llu" but I doubt the portability of that fix. (I guess I could also add separate renditions for #if defined(WIN32) && IVSIZE == 8 .... yuk.) What's the best portable way of dealing with this ? ... and where are the options for this formatting style documented ? I can never remember where Cheers, Rob
Back to
Seekers of Perl Wisdom
|
|