Getopt() fixes, from Max Horn.

git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@351 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
meep-eep
2002-12-05 23:37:33 +00:00
parent fc73eb26df
commit b570cf1943
8 changed files with 59 additions and 8 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
uqm_SUBDIRS=sc2code
uqm_SUBDIRS="sc2code getopt"
uqm_CFILES="options.c port.c starcon2.c"
test_CFILES=test.c
+3
View File
@@ -10,3 +10,6 @@
/* Defined if your system has stricmp of its own */
@HAVE_STRICMP@
/* Defined if your system has getopt.h */
@HAVE_GETOPT_H@
+1
View File
@@ -0,0 +1 @@
uqm_CFILES="getopt.c getopt1.c"
+3
View File
@@ -31,6 +31,7 @@
# include <config.h>
#endif
#ifndef HAVE_GETOPT_H
#if !defined __STDC__ || !__STDC__
/* This is a separate conditional since some stdc systems
reject `defined (const)'. */
@@ -1057,3 +1058,5 @@ main (argc, argv)
}
#endif /* TEST */
#endif /* HAVE_GETOPT_H */
+3
View File
@@ -22,6 +22,7 @@
#include <config.h>
#endif
#ifndef HAVE_GETOPT_H
#include "getopt.h"
#if !defined __STDC__ || !__STDC__
@@ -186,3 +187,5 @@ main (argc, argv)
}
#endif /* TEST */
#endif /* HAVE_GETOPT_H */
+5 -1
View File
@@ -18,10 +18,14 @@
#ifndef WIN32
#include <unistd.h>
#include <getopt.h>
#include "config.h"
#else
#include <direct.h>
#endif
#ifdef HAVE_GETOPT_H
#include <getopt.h>
#else
#include "getopt/getopt.h"
#endif