aboutsummaryrefslogtreecommitdiff
path: root/include/getopt.h
diff options
context:
space:
mode:
authorDJ Delorie <dj@redhat.com>2002-10-27 01:01:04 +0000
committerDJ Delorie <dj@redhat.com>2002-10-27 01:01:04 +0000
commitca9da28eb9b81bd841668a8f2eef235ee8a575ee (patch)
tree541e75c1773e448344e0cba55c53e924e652292d /include/getopt.h
parent89feeecabcefda576f82602184143e6288ebab0a (diff)
downloadgdb-ca9da28eb9b81bd841668a8f2eef235ee8a575ee.zip
gdb-ca9da28eb9b81bd841668a8f2eef235ee8a575ee.tar.gz
gdb-ca9da28eb9b81bd841668a8f2eef235ee8a575ee.tar.bz2
merge from gcc
Diffstat (limited to 'include/getopt.h')
-rw-r--r--include/getopt.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/getopt.h b/include/getopt.h
index da09cee..9495a48 100644
--- a/include/getopt.h
+++ b/include/getopt.h
@@ -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 */