diff --git a/main.cc b/main.cc index 911cd4d0f..1d848d1fe 100644 --- a/main.cc +++ b/main.cc @@ -19,7 +19,7 @@ const char COPYRIGHT[] = * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA */ #if !defined(WINNT) && !defined(macintosh) -#ident "$Id: main.cc,v 1.40 2001/01/20 19:02:05 steve Exp $" +#ident "$Id: main.cc,v 1.41 2001/05/20 17:35:05 steve Exp $" #endif const char NOTICE[] = @@ -52,6 +52,12 @@ const char NOTICE[] = # include "target.h" # include "compiler.h" +#if defined(__MINGW32__) && !defined(HAVE_GETOPT_H) +extern "C" int getopt(int argc, char*argv[], const char*fmt); +extern "C" int optind; +extern "C" const char*optarg; +#endif + const char VERSION[] = "$Name: $ $State: Exp $"; const char*target = "null"; @@ -330,6 +336,9 @@ int main(int argc, char*argv[]) /* * $Log: main.cc,v $ + * Revision 1.41 2001/05/20 17:35:05 steve + * declare getopt by hand in mingw32 compile. + * * Revision 1.40 2001/01/20 19:02:05 steve * Switch hte -f flag to the -p flag. * diff --git a/vvp/main.cc b/vvp/main.cc index bc2a761e9..aa477ef95 100644 --- a/vvp/main.cc +++ b/vvp/main.cc @@ -17,7 +17,7 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA */ #if !defined(WINNT) -#ident "$Id: main.cc,v 1.13 2001/05/12 20:38:06 steve Exp $" +#ident "$Id: main.cc,v 1.14 2001/05/20 17:34:53 steve Exp $" #endif # include "config.h" @@ -31,6 +31,12 @@ # include #endif +#if defined(__MINGW32__) && !defined(HAVE_GETOPT_H) +extern "C" int getopt(int argc, char*argv[], const char*fmt); +extern "C" int optind; +extern "C" const char*optarg; +#endif + const char*module_path = MODULE_DIR; unsigned module_cnt = 0; @@ -102,6 +108,9 @@ int main(int argc, char*argv[]) /* * $Log: main.cc,v $ + * Revision 1.14 2001/05/20 17:34:53 steve + * declare getopt by hand in mingw32 compile. + * * Revision 1.13 2001/05/12 20:38:06 steve * A resolver that understands some simple strengths. *