diff options
author | Nicholas Clark <nick@ccl4.org> | 2013-05-04 22:03:59 +0200 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2013-05-20 21:19:42 +0200 |
commit | 8e2d7c446d5ab31e6c8e661a3c17f0f0b199d525 (patch) | |
tree | b2040d4be9d29967368829dda6867005ba78ff5b /lib/integer.pm | |
parent | 260c6fee6deba90b42b0734fbdea2fea1d69c9bc (diff) | |
download | perl-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