* getopt.h: Avoid prototyping getopt with no arguments in C++.
Co-Authored-By: DJ Delorie <dj@redhat.com>
From-SVN: r58775
+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.
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__ */