summaryrefslogtreecommitdiffstatshomepage
path: root/unix/mpconfigport_minimal.h
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2017-04-01 11:39:38 +1100
committerDamien George <damien.p.george@gmail.com>2017-04-01 11:39:38 +1100
commit4c307bfba1e5ffa3cec94bd63ba19ba6c322883b (patch)
tree0ca562a561a639e2ab83e94d07f79699870c6986 /unix/mpconfigport_minimal.h
parent64d00511e11eed6e37134e5b43acac8a33226ca0 (diff)
downloadmicropython-4c307bfba1e5ffa3cec94bd63ba19ba6c322883b.tar.gz
micropython-4c307bfba1e5ffa3cec94bd63ba19ba6c322883b.zip
all: Move BYTES_PER_WORD definition from ports to py/mpconfig.h
It can still be overwritten by a port in mpconfigport.h but for almost all cases one can use the provided default.
Diffstat (limited to 'unix/mpconfigport_minimal.h')
-rw-r--r--unix/mpconfigport_minimal.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/unix/mpconfigport_minimal.h b/unix/mpconfigport_minimal.h
index 65e35c8d99..788c8519d2 100644
--- a/unix/mpconfigport_minimal.h
+++ b/unix/mpconfigport_minimal.h
@@ -127,8 +127,6 @@ typedef int mp_int_t; // must be pointer size
typedef unsigned int mp_uint_t; // must be pointer size
#endif
-#define BYTES_PER_WORD sizeof(mp_int_t)
-
// Cannot include <sys/types.h>, as it may lead to symbol name clashes
#if _FILE_OFFSET_BITS == 64 && !defined(__LP64__)
typedef long long mp_off_t;