Web lists-archives.com

Re: [Mingw-users] Problems compiling Gnulib-assisted projects with MinGW runtime 3.22.2




-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 13/10/16 07:02, Eli Zaretskii wrote:
> Thanks.  I think this would be indeed better.  However, note glibc
> doesn't exclude these prototypes from string.h when that 
> _POSIX_SOURCE is defined.  Although AFAIK _POSIX_SOURCE defined 
> means the user used the -posix switch to GCC, so perhaps this is 
> good enough in practice.

That was my thinking.  As implemented, the *default* activation of
_EMULATE_GLIBC will be blocked by any explicit definition of any of
_XOPEN_SOURCE, _POSIX_C_SOURCE, or implied __STRICT_ANSI__ feature
test; I added the block on _POSIX_SOURCE for consistency in handling
with _POSIX_C_SOURCE, explicitly to catch the -posix switch.  Since
I consider the glibc implementation to be fundamentally wrong, in
any case, I think this is appropriate; users can force it anyway,
by explicitly defining a non-zero valued _EMULATE_GLIBC *before*
any header is included, (or conversely, defeat it entirely by
defining _EMULATE_GLIBC with zero value).

- -- 
Regards,
Keith.

Public key available from keys.gnupg.net
Key fingerprint: C19E C018 1547 DE50 E1D4 8F53 C0AD 36C6 347E 5A3F
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.20 (GNU/Linux)

iQIcBAEBAgAGBQJX/2mgAAoJEMCtNsY0flo/5kYQAK4y4+TUwYgcQn01g6vFbbbw
J+bFnIGDDoSW8kXKVw5svjiBbjPFzF8p2hkyt+dRCjbp0pWvIWyYBboR3g0hxiHW
g86WK6Xx26vmvPnlL/AglsADx+jFWTYUPU+ffznqL4DaRl7Yfy355FsiVpbSC41g
17cAnmE9IYaDntl3mBYNKsYDJOqLUDRcHX2/5tbKxdUBY9Aky047H1xJIgF6lRtI
1Q3GswtBG1jJYLyWB92bU7qGRobLSJtsv+srCfMIgUCZvkN4W6P2Xguoor8B5S18
vu2oWCDb/5g0R916W0pJ1FX/uI8eraBxXwaDBj1AhbwUA9N12zVXjNaXY85D70HF
0L4Fz9vqVazcj1Sbo1DijKhwJ2FEFjdHCOASFAGd3iuHZEhjw2HXBwAhVEZbc8Jl
jyrvnUGcMjevy+JV8lBQGuBewmh5WyST+7hvL2Y6lQcir/40rkI4jt/i1RuRFu6k
+qnsRCv+GJqajXc1e7cq2Uvxi/DzlxDzBjQPqDx8mi7NVaVtmsk3siJM1O0jqjI0
9QiKUG4JnrSb+yXWUIJzynaMRd1oBJsO3eT9iPgskQ5AA5yjIZBo9WE4WlT2EM9a
6csPqydJY8OvcbGZfGMhronqA/ZpmvQrAIbv5ECICn12Os2SbMBZ7nkfdq7wBfQb
e3fvTG7neQnJR0T423Y1
=rtF4
-----END PGP SIGNATURE-----

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
MinGW-users mailing list
MinGW-users@xxxxxxxxxxxxxxxxxxxxx

This list observes the Etiquette found at 
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:mingw-users-request@xxxxxxxxxxxxxxxxxxxxx?subject=unsubscribe