summaryrefslogtreecommitdiffstatshomepage
path: root/unix/mpconfigport.h
diff options
context:
space:
mode:
authorJohn R. Lenton <jlenton@gmail.com>2014-01-05 01:57:54 +0000
committerJohn R. Lenton <jlenton@gmail.com>2014-01-05 01:57:54 +0000
commit7e73a8fd09a8070a3bbb90d2ddc4f04af4e2828a (patch)
tree606e074a1955f381c68d1689946066e9eb1a5a47 /unix/mpconfigport.h
parent5d4a8213395b1e27d303379772c90b3b0adc82d5 (diff)
parent45b43c21c4f8e30dcff00c2429eddba20ca002aa (diff)
downloadmicropython-7e73a8fd09a8070a3bbb90d2ddc4f04af4e2828a.tar.gz
micropython-7e73a8fd09a8070a3bbb90d2ddc4f04af4e2828a.zip
Merge remote-tracking branch 'upstream/master' into list_index
Diffstat (limited to 'unix/mpconfigport.h')
-rw-r--r--unix/mpconfigport.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/unix/mpconfigport.h b/unix/mpconfigport.h
index 3d0dc8a567..7a4622b8b6 100644
--- a/unix/mpconfigport.h
+++ b/unix/mpconfigport.h
@@ -1,5 +1,10 @@
// options to control how Micro Python is built
+// Linking with GNU readline causes binary to be licensed under GPL
+#ifndef MICROPY_USE_READLINE
+#define MICROPY_USE_READLINE (1)
+#endif
+
#define MICROPY_ENABLE_FLOAT (1)
#define MICROPY_EMIT_CPYTHON (0)
#define MICROPY_EMIT_X64 (1)
@@ -11,15 +16,11 @@
#ifdef __LP64__
typedef long machine_int_t; // must be pointer size
typedef unsigned long machine_uint_t; // must be pointer size
-#define UINT_FMT "%lu"
-#define INT_FMT "%ld"
#else
// These are definitions for machines where sizeof(int) == sizeof(void*),
// regardless for actual size.
typedef int machine_int_t; // must be pointer size
typedef unsigned int machine_uint_t; // must be pointer size
-#define UINT_FMT "%u"
-#define INT_FMT "%d"
#endif
#define BYTES_PER_WORD sizeof(machine_int_t)