aboutsummaryrefslogtreecommitdiff
path: root/py/mpz.h
diff options
context:
space:
mode:
authorstijn <stinos@zoho.com>2015-11-20 15:59:06 +0100
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2015-11-24 17:34:14 +0200
commit3baf6b531990dda109b9af065c94cf9eb9c0aac6 (patch)
tree8664323c408ece050b31ed751352c4402c97ba0a /py/mpz.h
parenta58fa27c2409c393bd7df5c58e63eec2730c4f68 (diff)
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
Diffstat (limited to 'py/mpz.h')
-rw-r--r--py/mpz.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/py/mpz.h b/py/mpz.h
index b2dd88acf..63ac772ff 100644
--- a/py/mpz.h
+++ b/py/mpz.h
@@ -73,7 +73,11 @@ typedef int8_t mpz_dbl_dig_signed_t;
#endif
#ifdef _WIN64
- #define MPZ_LONG_1 1i64
+ #ifdef __MINGW32__
+ #define MPZ_LONG_1 1LL
+ #else
+ #define MPZ_LONG_1 1i64
+ #endif
#else
#define MPZ_LONG_1 1L
#endif