• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Aucun tag

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Révision1f99f6d0689d20db44c0c7d88e8af1ebe900d187 (tree)
l'heure2015-01-20 00:29:07
AuteurJoel Brobecker <brobecker@adac...>
CommiterJoel Brobecker

Message de Log

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.

Change Summary

Modification

--- a/libiberty/ChangeLog
+++ b/libiberty/ChangeLog
@@ -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+
16 2014-12-24 Uros Bizjak <ubizjak@gmail.com>
27 Ben Elliston <bje@au.ibm.com>
38 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
--- a/libiberty/strerror.c
+++ b/libiberty/strerror.c
@@ -469,8 +469,13 @@ static const char **sys_errlist;
469469
470470 #else
471471
472+
473+#ifndef sys_nerr
472474 extern int sys_nerr;
475+#endif
476+#ifndef sys_errlist
473477 extern char *sys_errlist[];
478+#endif
474479
475480 #endif
476481