aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2009-07-14 14:28:04 -0700
committerBrian Behlendorf <[email protected]>2009-07-14 14:28:04 -0700
commitb11b08ed641b8c677b529e108c2b28dc0183d34c (patch)
tree929df128e8fa49f2087decbe7fd7684f4a12c27a
parent06dea103807ed57621d5711edafc4da2f2d9bbc6 (diff)
Add a little paranoia here to ensure endianess is set correctly.
-rw-r--r--include/sys/isa_defs.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/sys/isa_defs.h b/include/sys/isa_defs.h
index 3b8fffe1e..081133e5a 100644
--- a/include/sys/isa_defs.h
+++ b/include/sys/isa_defs.h
@@ -73,7 +73,11 @@ extern "C" {
#endif
#if defined(_LITTLE_ENDIAN) && defined(_BIG_ENDIAN)
-#error "Both _LITTLE_ENDIAN and __BIG_ENDIAN are defined"
+#error "Both _LITTLE_ENDIAN and _BIG_ENDIAN are defined"
+#endif
+
+#if !defined(_LITTLE_ENDIAN) && !defined(_BIG_ENDIAN)
+#error "Neither _LITTLE_ENDIAN or _BIG_ENDIAN are defined"
#endif
#ifdef __cplusplus