summaryrefslogtreecommitdiff
path: root/lib/integer.pm
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2013-05-04 22:03:59 +0200
committerNicholas Clark <nick@ccl4.org>2013-05-20 21:19:42 +0200
commit8e2d7c446d5ab31e6c8e661a3c17f0f0b199d525 (patch)
treeb2040d4be9d29967368829dda6867005ba78ff5b /lib/integer.pm
parent260c6fee6deba90b42b0734fbdea2fea1d69c9bc (diff)
downloadperl-8e2d7c446d5ab31e6c8e661a3c17f0f0b199d525.tar.gz
Provide ntohl, ntohs, htonl and htons no-op macros on big endian systems.
This means that there are always macros or functions for ntohl, ntohs, htonl and htons available, so eliminate use of HAS_NTOHL etc, and unconditionally compile the code that it was protecting. However, as code on CPAN is using these guard macros, define all of them in perl.h (Technically the 4 are not quite no-ops, as they truncate their values to 32 or 16 bits, to be consistent with the implementations for platforms which need re-ordering.)
Diffstat (limited to 'lib/integer.pm')
0 files changed, 0 insertions, 0 deletions