re PR bootstrap/8351 (3.3 20021024 (experimental) fails to bootstrap on cygwin)
authorRoger Sayle <roger@eyesopen.com>
Sun, 27 Oct 2002 00:54:50 +0000 (00:54 +0000)
committerRoger Sayle <sayle@gcc.gnu.org>
Sun, 27 Oct 2002 00:54:50 +0000 (00:54 +0000)
PR bootstrap/8351
* getopt.h:  Avoid prototyping getopt with no arguments in C++.

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

include/ChangeLog
include/getopt.h

index 424b99790dc6bb440742cb604c8a04c740a39826..70942c51168395a14d279f0ff4d40154dbb17633 100644 (file)
@@ -1,3 +1,9 @@
+2002-10-26  Roger Sayle  <roger@eyesopen.com>
+           DJ Delorie <dj@redhat.com>
+
+       PR bootstrap/8351
+       * getopt.h: Avoid prototyping getopt with no arguments in C++.
+
 2002-10-24  Nathan Tallent  <eraxxon@alumni.rice.edu>
 
        * ansidecl.h (__STDC__): Add (__alpha && __cplusplus) to the
index da09cee3be10d0bc69256940243f4132662e233a..9495a4846fde8d57623acb48c0a9ff63aeaf7bb6 100644 (file)
@@ -112,7 +112,9 @@ struct option
    errors, only prototype getopt for the GNU C library.  */
 extern int getopt (int argc, char *const *argv, const char *shortopts);
 #else
+#ifndef __cplusplus
 extern int getopt ();
+#endif /* __cplusplus */
 #endif
 #endif /* !HAVE_DECL_GETOPT */