# HG changeset patch # User Richard M. Stallman # Date 897512458 0 # Node ID aabf58b0a7240ed450f20b1611269683e41cf053 # Parent 921311b43bf4813ee07b6dfe7dbc5085e288ce21 (getcwd): Remove define. (getdefdir) [emacs]: Redefine to always return root directory. diff -r 921311b43bf4 -r aabf58b0a724 src/s/ms-w32.h --- a/src/s/ms-w32.h Wed Jun 10 21:00:39 1998 +0000 +++ b/src/s/ms-w32.h Wed Jun 10 21:00:58 1998 +0000 @@ -352,7 +352,6 @@ #define fileno _fileno #define flushall _flushall #define fputchar _fputchar -#define getcwd _getcwd #define getw _getw #define getpid _getpid #define isatty _isatty @@ -397,7 +396,11 @@ /* For integration with MSDOS support. */ #define getdisk() (_getdrive () - 1) +#ifdef emacs +#define getdefdir(_drv, _buf) ((_buf[0] = (_drv + 'A' - 1), _buf[1] = ':', _buf[2] = '/', _buf[3] = 0), 1) +#else #define getdefdir(_drv, _buf) _getdcwd (_drv, _buf, MAXPATHLEN) +#endif #define EMACS_CONFIGURATION get_emacs_configuration () #define EMACS_CONFIG_OPTIONS "NT" /* Not very meaningful yet. */