diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2009-10-08 16:26:28 +0000 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2009-10-08 16:26:28 +0000 |
commit | 85191fc5aa295e10e4bfecc8637d9d0ce74fc065 (patch) | |
tree | 45d30e79fda8c667a7d5d716910163992ee83fe0 /newlib/libc/include/getopt.h | |
parent | 5391a40c895765db3a41dc8aeaa3c2b3c4c1ce7a (diff) | |
download | cygnal-85191fc5aa295e10e4bfecc8637d9d0ce74fc065.tar.gz cygnal-85191fc5aa295e10e4bfecc8637d9d0ce74fc065.tar.bz2 cygnal-85191fc5aa295e10e4bfecc8637d9d0ce74fc065.zip |
2009-10-08 Eric Blake <ebb9@byu.net>
* libc/include/getopt.h (__getopt_r, __getopt_long_r)
(__getopt_long_only_r): Protect declarations, to avoid compiler
warning.
Diffstat (limited to 'newlib/libc/include/getopt.h')
-rw-r--r-- | newlib/libc/include/getopt.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/newlib/libc/include/getopt.h b/newlib/libc/include/getopt.h index 13cf99c5f..ba8da4a7f 100644 --- a/newlib/libc/include/getopt.h +++ b/newlib/libc/include/getopt.h @@ -164,6 +164,7 @@ extern "C" (int __argc, char *const __argv[], const char *__shortopts, const struct option * __longopts, int *__longind)); +#ifdef __need_getopt_newlib int _EXFUN (__getopt_r, (int __argc, char *const __argv[], const char *__optstring, struct getopt_data * __data)); @@ -177,6 +178,7 @@ extern "C" (int __argc, char *const __argv[], const char *__shortopts, const struct option * __longopts, int *__longind, struct getopt_data * __data)); +#endif /* __need_getopt_newlib */ #ifdef __cplusplus }; |