getopt.h: Avoid prototyping getopt with no arguments in C++.

* getopt.h:  Avoid prototyping getopt with no arguments in C++.

Co-Authored-By: DJ Delorie <dj@redhat.com>

From-SVN: r58775
This commit is contained in:
Roger Sayle 2002-11-03 23:45:49 +00:00 committed by Roger Sayle
parent 00a7f091d7
commit 1a3ef03061
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2002-11-03 Roger Sayle <roger@eyesopen.com>
DJ Delorie <dj@redhat.com>
* getopt.h: Avoid prototyping getopt with no arguments in C++.
2002-08-14 Release Manager
* GCC 3.2 Released.

View File

@ -111,7 +111,7 @@ struct option
errors, only prototype getopt for the GNU C library. */
extern int getopt (int argc, char *const *argv, const char *shortopts);
#else /* not __GNU_LIBRARY__ */
# if !defined (HAVE_DECL_GETOPT)
# if !defined (HAVE_DECL_GETOPT) && !defined (__cplusplus)
extern int getopt ();
# endif
#endif /* __GNU_LIBRARY__ */