summaryrefslogtreecommitdiff
path: root/perl.h
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2003-08-27 05:17:44 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2003-08-27 05:17:44 +0000
commit99ec81d37267036802558d0fe26c7a89fe8bf540 (patch)
tree837a583eaa892a61781a753ed302a1183d480b22 /perl.h
parent7da0e3835572d02b95a50131e2eb75d6ecad02e5 (diff)
downloadperl-99ec81d37267036802558d0fe26c7a89fe8bf540.tar.gz
Sanity check for BYTEORDER.
p4raw-id: //depot/perl@20914
Diffstat (limited to 'perl.h')
-rw-r--r--perl.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/perl.h b/perl.h
index cd735afa6f..1d740ec5dc 100644
--- a/perl.h
+++ b/perl.h
@@ -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? */