diff options
Diffstat (limited to 'winsup/cygwin/include/getopt.h')
-rw-r--r-- | winsup/cygwin/include/getopt.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/winsup/cygwin/include/getopt.h b/winsup/cygwin/include/getopt.h index 6b6f643b7..ba095ba2f 100644 --- a/winsup/cygwin/include/getopt.h +++ b/winsup/cygwin/include/getopt.h @@ -38,11 +38,13 @@ extern "C" { #endif -extern int opterr; /* if error message should be printed */ -extern int optind; /* index into parent argv vector */ -extern int optopt; /* character checked for validity */ -extern int optreset; /* reset getopt */ -extern char *optarg; /* argument associated with option */ +#ifndef __INSIDE_CYGWIN__ +extern int __declspec(dllimport) opterr; /* if error message should be printed */ +extern int __declspec(dllimport) optind; /* index into parent argv vector */ +extern int __declspec(dllimport) optopt; /* character checked for validity */ +extern int __declspec(dllimport) optreset; /* reset getopt */ +extern char __declspec(dllimport) *optarg; /* argument associated with option */ +#endif int getopt (int, char * const *, const char *); |