projects
/
platform
/
upstream
/
perl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7da0e38
)
Sanity check for BYTEORDER.
author
Jarkko Hietaniemi
<jhi@iki.fi>
Wed, 27 Aug 2003 05:17:44 +0000
(
05:17
+0000)
committer
Jarkko Hietaniemi
<jhi@iki.fi>
Wed, 27 Aug 2003 05:17:44 +0000
(
05:17
+0000)
p4raw-id: //depot/perl@20914
perl.h
patch
|
blob
|
history
diff --git
a/perl.h
b/perl.h
index
cd735af
..
1d740ec
100644
(file)
--- 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? */