Révision | 1f99f6d0689d20db44c0c7d88e8af1ebe900d187 (tree) |
---|---|
l'heure | 2015-01-20 00:29:07 |
Auteur | Joel Brobecker <brobecker@adac...> |
Commiter | Joel Brobecker |
strerror.c: Do not declare sys_nerr or sys_errlist if already macros
This fixes a MinGW warning in libiberty/strerror.c.
2015-01-19 Eli Zaretskii <eliz@gnu.org>
@@ -1,3 +1,8 @@ | ||
1 | +2015-01-19 Eli Zaretskii <eliz@gnu.org> | |
2 | + | |
3 | + * strerror.c <sys_nerr, sys_errlist>: Declare only if they aren't | |
4 | + macros. | |
5 | + | |
1 | 6 | 2014-12-24 Uros Bizjak <ubizjak@gmail.com> |
2 | 7 | Ben Elliston <bje@au.ibm.com> |
3 | 8 | Manuel Lopez-Ibanez <manu@gcc.gnu.org> |
@@ -469,8 +469,13 @@ static const char **sys_errlist; | ||
469 | 469 | |
470 | 470 | #else |
471 | 471 | |
472 | + | |
473 | +#ifndef sys_nerr | |
472 | 474 | extern int sys_nerr; |
475 | +#endif | |
476 | +#ifndef sys_errlist | |
473 | 477 | extern char *sys_errlist[]; |
478 | +#endif | |
474 | 479 | |
475 | 480 | #endif |
476 | 481 |