summaryrefslogtreecommitdiffstatshomepage
path: root/unix/mpconfigport.h
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2014-01-04 01:57:00 +0200
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2014-01-04 01:57:00 +0200
commitc90c0f68a2f1ee8563497a5380a16e71d18d702a (patch)
treebc79d91a7804a5259f368a86e3f21289e636c4ab /unix/mpconfigport.h
parentb7aa72710ee6798c6d2bc2632be24206e526fc1e (diff)
downloadmicropython-c90c0f68a2f1ee8563497a5380a16e71d18d702a.tar.gz
micropython-c90c0f68a2f1ee8563497a5380a16e71d18d702a.zip
Move INT_FMT, etc. declaration into global mpconfig.h .
This in particular makes it available for stm port.
Diffstat (limited to 'unix/mpconfigport.h')
-rw-r--r--unix/mpconfigport.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/unix/mpconfigport.h b/unix/mpconfigport.h
index 3d0dc8a567..36cf138c17 100644
--- a/unix/mpconfigport.h
+++ b/unix/mpconfigport.h
@@ -11,15 +11,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)