summaryrefslogtreecommitdiff
path: root/unix/mpconfigport.h
diff options
context:
space:
mode:
Diffstat (limited to 'unix/mpconfigport.h')
-rw-r--r--unix/mpconfigport.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/unix/mpconfigport.h b/unix/mpconfigport.h
index 035c62883..0eaa84d15 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)