Do not detect x32 as 64-bit platform.
Fixes test failures due to ISO C Undefined Behaviour in MP_MASK macro.
This commit is contained in:

committed by
Jelmer Vernooij

parent
d237e8e4d9
commit
005c8886d7
@@ -46,7 +46,7 @@ extern "C" {
|
|||||||
|
|
||||||
|
|
||||||
/* detect 64-bit mode if possible */
|
/* detect 64-bit mode if possible */
|
||||||
#if defined(__x86_64__)
|
#if defined(__x86_64__) && !defined(__ILP32__)
|
||||||
#if !(defined(MP_64BIT) && defined(MP_16BIT) && defined(MP_8BIT))
|
#if !(defined(MP_64BIT) && defined(MP_16BIT) && defined(MP_8BIT))
|
||||||
#define MP_64BIT
|
#define MP_64BIT
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user