summaryrefslogtreecommitdiff
path: root/src/util/getopt.c
diff options
context:
space:
mode:
authorjmasso <jmasso@17b73243-c579-4c4c-a9d2-2d5706c11dac>1999-06-03 09:00:12 +0000
committerjmasso <jmasso@17b73243-c579-4c4c-a9d2-2d5706c11dac>1999-06-03 09:00:12 +0000
commitaa389873c96c22f911ef6de3116e95e38b7b42c6 (patch)
treef8140a0b20dc53b6f600e04f4f01f39a3a0d58da /src/util/getopt.c
parent4a2f8a2b44f74e5108818d70f071b6341b8dea62 (diff)
More changes from Joan and his NT nightmares.
Please try this on a reasonable OS. git-svn-id: http://svn.cactuscode.org/flesh/trunk@543 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'src/util/getopt.c')
-rw-r--r--src/util/getopt.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/util/getopt.c b/src/util/getopt.c
index 451c9c54..2760313d 100644
--- a/src/util/getopt.c
+++ b/src/util/getopt.c
@@ -22,6 +22,12 @@
#define _NO_PROTO
#endif
+/*Joan */
+#include <stdio.h>
+
+/* from stdlib.h */
+_CRTIMP char * __cdecl getenv(const char *);
+
#ifdef HAVE_CONFIG_H
#if defined (emacs) || defined (CONFIG_BROKETS)
/* We use <config.h> instead of "config.h" so that a compilation
@@ -41,11 +47,11 @@
#endif
#endif
-#include <stdio.h>
-#ifdef HAVE_STRING_H
+/* Joan
+#ifdef HAVE_STRING_H */
#include <string.h>
-#endif
+/* #endif */
/* Comment out all this code if we are using the GNU C Library, and are not
actually compiling the library itself. This code is part of the GNU C
@@ -174,7 +180,7 @@ static char *posixly_correct;
/* Avoid depending on library functions or files
whose names are inconsistent. */
-char *getenv ();
+
static char *
my_index (str, chr)