From 445f44d296f452fda44fa31560fed363297304d2 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Wed, 10 Jun 1998 21:00:58 +0000 Subject: [PATCH] (getcwd): Remove define. (getdefdir) [emacs]: Redefine to always return root directory. --- src/s/ms-w32.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/s/ms-w32.h b/src/s/ms-w32.h index 4b9b08426d7..58fa4d05b97 100644 --- a/src/s/ms-w32.h +++ b/src/s/ms-w32.h @@ -352,7 +352,6 @@ Boston, MA 02111-1307, USA. */ #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 @@ Boston, MA 02111-1307, USA. */ /* 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. */ -- 2.39.2