diff options
| author | Richard M. Stallman <rms@gnu.org> | 1996-03-28 19:31:28 +0000 |
|---|---|---|
| committer | Richard M. Stallman <rms@gnu.org> | 1996-03-28 19:31:28 +0000 |
| commit | 7426ce61f62afa149dda06ba2552ebffd45fdc34 (patch) | |
| tree | b2be3819739d6e16c7a24a24315395c11fd4da60 | |
| parent | 9009ad55544b9bc70bcd183774d107e402e5ec9b (diff) | |
| download | emacs-7426ce61f62afa149dda06ba2552ebffd45fdc34.tar.gz | |
(Frename_file) [WINDOWSNT]: Remove conditional code.
| -rw-r--r-- | src/fileio.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/fileio.c b/src/fileio.c index 221ef67cd8e..3d0e30d1f4e 100644 --- a/src/fileio.c +++ b/src/fileio.c @@ -2109,21 +2109,11 @@ This is what happens in interactive use with M-x.") #ifndef BSD4_1 if (0 > rename (XSTRING (file)->data, XSTRING (newname)->data)) #else -#ifdef WINDOWSNT - if (!MoveFile (XSTRING (file)->data, XSTRING (newname)->data)) -#else /* not WINDOWSNT */ if (0 > link (XSTRING (file)->data, XSTRING (newname)->data) || 0 > unlink (XSTRING (file)->data)) -#endif /* not WINDOWSNT */ #endif { -#ifdef WINDOWSNT - /* Why two? And why doesn't MS document what MoveFile will return? */ - if (GetLastError () == ERROR_FILE_EXISTS - || GetLastError () == ERROR_ALREADY_EXISTS) -#else /* not WINDOWSNT */ if (errno == EXDEV) -#endif /* not WINDOWSNT */ { Fcopy_file (file, newname, /* We have already prompted if it was an integer, |
