# HG changeset patch # User Richard M. Stallman # Date 783667574 0 # Node ID bd49556a75529710439742b2c444149e2ebf4441 # Parent 20652342eb9a790562476758f913917cc3e62204 (main, etags_getcwd): Test DOS_NT instead of MSDOS. [WINDOWSNT]: Include some NT headers. diff -r 20652342eb9a -r bd49556a7552 lib-src/etags.c --- a/lib-src/etags.c Tue Nov 01 05:23:42 1994 +0000 +++ b/lib-src/etags.c Tue Nov 01 05:26:14 1994 +0000 @@ -35,6 +35,13 @@ #include #endif /* MSDOS */ +#ifdef WINDOWSNT +#include +#include +#include +#define MAXPATHLEN _MAX_PATH +#endif + #ifdef HAVE_CONFIG_H #include <../src/config.h> /* On some systems, Emacs defines static as nothing @@ -410,9 +417,9 @@ extern char *massage_name (); #endif -#ifdef MSDOS +#ifdef DOS_NT _fmode = O_BINARY; /* all of files are treated as binary files */ -#endif /* MSDOS */ +#endif /* DOS_NT */ progname = argv[0]; @@ -3171,7 +3178,7 @@ return result; } -#ifdef MSDOS +#ifdef DOS_NT char * etags_getcwd () { @@ -3185,7 +3192,7 @@ *p++ = tolower (*p); return strdup (cwd); } -#else /* not MSDOS */ +#else /* not DOS_NT */ /* Does the same work as the system V getcwd, but does not need to guess buffer size in advance. Included mostly for compatibility. */ char * @@ -3228,7 +3235,7 @@ buf[strlen (buf) - 1] = '\0'; return buf; } -#endif /* not MSDOS */ +#endif /* not DOS_NT */ /* Return a newly allocated string containing the filename of FILE relative to the absolute directory DIR (which