summaryrefslogtreecommitdiff
path: root/include/getopt.h
diff options
context:
space:
mode:
authorDJ Delorie <dj@delorie.com>2002-10-27 01:01:04 +0000
committerDJ Delorie <dj@delorie.com>2002-10-27 01:01:04 +0000
commita604daa28745b68f131d51ae39cc81c4fc5c7a79 (patch)
tree778e95f060fc5c459ebc0a915df32c1363deded7 /include/getopt.h
parent3b7fd51db04ded070e0090c78f60884c182f3753 (diff)
downloadbinutils-redhat-a604daa28745b68f131d51ae39cc81c4fc5c7a79.tar.gz
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 da09cee3be..9495a4846f 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 */