mirror of
https://github.com/micropython/micropython.git
synced 2026-01-06 20:20:14 +01:00
windows/py: Support 64bit mingw-w64 builds
- add mp_int_t/mp_uint_t typedefs in mpconfigport.h - fix integer suffixes/formatting in mpconfig.h and mpz.h - use MICROPY_NLR_SETJMP=1 in Makefile since the current nlrx64.S implementation causes segfaults in gc_free() - update README
This commit is contained in:
@@ -849,10 +849,14 @@ typedef double mp_float_t;
|
||||
|
||||
// printf format spec to use for mp_int_t and friends
|
||||
#ifndef INT_FMT
|
||||
#ifdef __LP64__
|
||||
#if defined(__LP64__)
|
||||
// Archs where mp_int_t == long, long != int
|
||||
#define UINT_FMT "%lu"
|
||||
#define INT_FMT "%ld"
|
||||
#elif defined(_WIN64)
|
||||
#include <inttypes.h>
|
||||
#define UINT_FMT "%"PRIu64
|
||||
#define INT_FMT "%"PRId64
|
||||
#else
|
||||
// Archs where mp_int_t == int
|
||||
#define UINT_FMT "%u"
|
||||
|
||||
Reference in New Issue
Block a user