diff options
Diffstat (limited to 'contrib/gcc/getopt.h')
-rw-r--r-- | contrib/gcc/getopt.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/gcc/getopt.h b/contrib/gcc/getopt.h index cb5feba..04346dd 100644 --- a/contrib/gcc/getopt.h +++ b/contrib/gcc/getopt.h @@ -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__ */ |