1 |
/* Declarations for getopt. |
/* Declarations for getopt. |
2 |
Copyright 1989, 1990, 1991, 1992, 1993, 1994, 1996, 1997, 1998, 2000 |
Copyright 1989, 1990, 1991, 1992, 1993, 1994, 1996, 1997, 1998, 2000, |
3 |
Free Software Foundation, Inc. |
2002 Free Software Foundation, Inc. |
4 |
|
|
5 |
NOTE: The canonical source of this file is maintained with the GNU C Library. |
NOTE: The canonical source of this file is maintained with the GNU C Library. |
6 |
Bugs can be reported to bug-glibc@gnu.org. |
Bugs can be reported to bug-glibc@gnu.org. |
108 |
#if !HAVE_DECL_GETOPT |
#if !HAVE_DECL_GETOPT |
109 |
#if defined (__GNU_LIBRARY__) || defined (HAVE_DECL_GETOPT) |
#if defined (__GNU_LIBRARY__) || defined (HAVE_DECL_GETOPT) |
110 |
/* Many other libraries have conflicting prototypes for getopt, with |
/* Many other libraries have conflicting prototypes for getopt, with |
111 |
differences in the consts, in stdlib.h. To avoid compilation |
differences in the consts, in unistd.h. To avoid compilation |
112 |
errors, only prototype getopt for the GNU C library. */ |
errors, only prototype getopt for the GNU C library. */ |
113 |
extern int getopt (int argc, char *const *argv, const char *shortopts); |
extern int getopt (int argc, char *const *argv, const char *shortopts); |
114 |
#else |
#else |
115 |
|
#ifndef __cplusplus |
116 |
extern int getopt (); |
extern int getopt (); |
117 |
|
#endif /* __cplusplus */ |
118 |
#endif |
#endif |
119 |
#endif /* !HAVE_DECL_GETOPT */ |
#endif /* !HAVE_DECL_GETOPT */ |
120 |
|
|