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:
parent
00a7f091d7
commit
1a3ef03061
|
@ -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.
|
||||
|
|
|
@ -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__ */
|
||||
|
|
Loading…
Reference in New Issue