summaryrefslogtreecommitdiff
path: root/py/mpconfig.h
diff options
context:
space:
mode:
Diffstat (limited to 'py/mpconfig.h')
-rw-r--r--py/mpconfig.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/py/mpconfig.h b/py/mpconfig.h
index b812cf032..619bce2ab 100644
--- a/py/mpconfig.h
+++ b/py/mpconfig.h
@@ -2187,13 +2187,16 @@ typedef time_t mp_timestamp_t;
// Archs where mp_int_t == long, long != int
#define UINT_FMT "%lu"
#define INT_FMT "%ld"
+#define HEX_FMT "%lx"
#elif defined(_WIN64)
#define UINT_FMT "%llu"
#define INT_FMT "%lld"
+#define HEX_FMT "%llx"
#else
// Archs where mp_int_t == int
#define UINT_FMT "%u"
#define INT_FMT "%d"
+#define HEX_FMT "%x"
#endif
#endif // INT_FMT