diff options
Diffstat (limited to 'include/getopt.h')
-rw-r--r-- | include/getopt.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/getopt.h b/include/getopt.h index da09cee3be1..9495a4846fd 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 */ |