t...@gmplib.org (Torbjörn Granlund) writes:

> Should we pass this option for mingw on GMP's configure.ac?

Maybe we can keep things simple and add an

#if defined(__WIN32__) && define (__GNUC__)
#define __USE_MINGW_ANSI_STDIO 1
#endif

at the top of the source files that need it, or at the top of config.h?
I don't have a native mingw compiler handy, but my gnu/linux-hosted
cross compiler, x86_64-w64-mingw32-gcc, has the following
windows-related defines:

#define WIN32 1
#define WIN64 1
#define WINNT 1
#define _WIN32 1
#define _WIN64 1
#define __WIN32 1
#define __WIN32__ 1
#define __WIN64 1
#define __WIN64__ 1
#define __WINNT 1
#define __WINNT__ 1

Except for the *64 symbols, it seems to be the same also when building
with -m32.

> Or do people expect broken libc on this platform...?

I'd guess there are plenty of windows programs that depend on the
non-standard behavior. So bug-compatibility makes some sense. But we
don't want it.

/Niels

-- 
Niels Möller. PGP-encrypted email is preferred. Keyid 368C6677.
Internet email is subject to wholesale government surveillance.
_______________________________________________
gmp-bugs mailing list
gmp-bugs@gmplib.org
https://gmplib.org/mailman/listinfo/gmp-bugs

Reply via email to