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>

        * strerror.c <sys_nerr, sys_errlist>: Declare only if they aren't
        macros.
This commit is contained in:
Joel Brobecker 2015-01-19 16:29:07 +01:00
parent c4621b339e
commit 1f99f6d068
2 changed files with 10 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2015-01-19 Eli Zaretskii <eliz@gnu.org>
* strerror.c <sys_nerr, sys_errlist>: Declare only if they aren't
macros.
2014-12-24 Uros Bizjak <ubizjak@gmail.com> 2014-12-24 Uros Bizjak <ubizjak@gmail.com>
Ben Elliston <bje@au.ibm.com> Ben Elliston <bje@au.ibm.com>
Manuel Lopez-Ibanez <manu@gcc.gnu.org> Manuel Lopez-Ibanez <manu@gcc.gnu.org>

View file

@ -469,8 +469,13 @@ static const char **sys_errlist;
#else #else
#ifndef sys_nerr
extern int sys_nerr; extern int sys_nerr;
#endif
#ifndef sys_errlist
extern char *sys_errlist[]; extern char *sys_errlist[];
#endif
#endif #endif