declare getopt by hand in mingw32 compile.

This commit is contained in:
steve 2001-05-20 17:34:53 +00:00
parent 77d63aba74
commit e69a3ed934
2 changed files with 20 additions and 2 deletions

11
main.cc
View File

@ -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.
*

View File

@ -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 <getopt.h>
#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.
*