From d8b08cf5fcac5ea3bf28f27f9bfa5fc7465c209b Mon Sep 17 00:00:00 2001 From: Damien George Date: Fri, 15 Jan 2016 11:12:08 +0000 Subject: unix: Add option to build 64-bit NaN-boxing interpreter. Build using: make nanbox --- unix/mpconfigport.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'unix/mpconfigport.h') diff --git a/unix/mpconfigport.h b/unix/mpconfigport.h index 035c62883d..0eaa84d15c 100644 --- a/unix/mpconfigport.h +++ b/unix/mpconfigport.h @@ -182,6 +182,8 @@ extern const struct _mp_obj_module_t mp_module_jni; // type definitions for the specific machine +// assume that if we already defined the obj repr then we also defined types +#ifndef MICROPY_OBJ_REPR #ifdef __LP64__ typedef long mp_int_t; // must be pointer size typedef unsigned long mp_uint_t; // must be pointer size @@ -191,6 +193,7 @@ typedef unsigned long mp_uint_t; // must be pointer size typedef int mp_int_t; // must be pointer size typedef unsigned int mp_uint_t; // must be pointer size #endif +#endif #define BYTES_PER_WORD sizeof(mp_int_t) -- cgit v1.2.3