aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien George2014-04-14 21:41:05 +0100
committerDamien George2014-04-14 21:41:05 +0100
commit3d867f5eab677fcb2cebd71c03f9265a70d601a5 (patch)
tree6b3f9250a6e78ce82ec865715dde5f7107d4ba15
parenta7239b2fc28d83b144f0f1b6b692b0ed925d212f (diff)
parentcc83737d3534cc550e358ab565c03d623c814b91 (diff)
Merge pull request #479 from lurch/patch-1
Don't allow both ENDIANNESSes to be set
-rw-r--r--py/mpconfig.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/py/mpconfig.h b/py/mpconfig.h
index 8f60c997b..58ef43d31 100644
--- a/py/mpconfig.h
+++ b/py/mpconfig.h
@@ -193,6 +193,10 @@ typedef double mp_float_t;
// Just because most archs are such?
#define MP_ENDIANNESS_LITTLE (1)
#endif
+// Ensure we don't accidentally set both endiannesses
+#if MP_ENDIANNESS_BIG
+#define MP_ENDIANNESS_LITTLE (0)
+#endif
// printf format spec to use for machine_int_t and friends
#ifndef INT_FMT