From 3a391ef6c247a0eee78ce93cf3c3ab5617dc06d9 Mon Sep 17 00:00:00 2001 From: Fumitoshi UKAI Date: Fri, 16 Nov 2001 22:02:00 +0000 Subject: follow autoconf conventions, #include cleanups --- indep.c | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) (limited to 'indep.c') diff --git a/indep.c b/indep.c index b4cdc46..5a859f5 100644 --- a/indep.c +++ b/indep.c @@ -1,13 +1,10 @@ -/* $Id: indep.c,v 1.3 2001/11/15 00:32:13 a-ito Exp $ */ +/* $Id: indep.c,v 1.4 2001/11/16 22:02:00 ukai Exp $ */ #include "fm.h" #include #include #include #include #include -#ifdef __EMX__ -#include /* for bcopy() */ -#endif /* __EMX__ */ #include "indep.h" #include "Str.h" #include "gc.h" @@ -50,14 +47,14 @@ char * currentdir() { char *path; -#ifdef GETCWD +#ifdef HAVE_GETCWD path = NewAtom_N(char, MAXPATHLEN); getcwd(path, MAXPATHLEN); -#else /* not GETCWD */ -#ifdef GETWD +#else /* not HAVE_GETCWD */ +#ifdef HAVE_GETWD path = NewAtom_N(char, 1024); getwd(path); -#else /* not GETWD */ +#else /* not HAVE_GETWD */ FILE *f; char *p; path = NewAtom_N(char, 1024); @@ -69,8 +66,8 @@ currentdir() *p = '\0'; break; } -#endif /* not GETWD */ -#endif /* not GETCWD */ +#endif /* not HAVE_GETWD */ +#endif /* not HAVE_GETCWD */ return path; } -- cgit v1.2.3