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

> It is not completely obvious to me that one can link things together
> where some parts want to compliant stdio and some other parts want a
> non-compliant stdio.

I don't really know how that magic works, but my guess guess is that
it's per compilation unit, so "printf" in the source code will refer to
one of two different functions depending on which magic preprocessor
symbols were defined when stdio.h was parsed. (Which then might violate
C standard rules on function pointer comparison...)

Anyway, I don't think we can try to force any windows program linking
with gmp to define __USE_MINGW_ANSI_STDIO in each and every compilation
unit, so I hope things will work well enough with a mix.

Regards,
/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