diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2003-08-27 05:17:44 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2003-08-27 05:17:44 +0000 |
commit | 99ec81d37267036802558d0fe26c7a89fe8bf540 (patch) | |
tree | 837a583eaa892a61781a753ed302a1183d480b22 /perl.h | |
parent | 7da0e3835572d02b95a50131e2eb75d6ecad02e5 (diff) | |
download | perl-99ec81d37267036802558d0fe26c7a89fe8bf540.tar.gz |
Sanity check for BYTEORDER.
p4raw-id: //depot/perl@20914
Diffstat (limited to 'perl.h')
-rw-r--r-- | perl.h | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -247,8 +247,9 @@ register struct op *Perl_op asm(stringify(OP_IN_REGISTER)); #define SOFT_CAST(type) (type) #endif -#ifndef BYTEORDER /* Should never happen -- byteorder is in config.h */ -# define BYTEORDER 0x1234 +/* Only these byteorders are really known and tested. */ +#if !(BYTEORDER == 0x1234 || BYTEORDER == 0x12345678 || BYTEORDER == 0x4321 || BYTEORDER == 0x87654321) +# error "UNKNOWN BYTEORDER!" #endif /* Overall memory policy? */ |