changeset 14906:70388277dac0

(Frename_file) [WINDOWSNT]: Remove conditional code.
author Richard M. Stallman <rms@gnu.org>
date Thu, 28 Mar 1996 19:31:28 +0000
parents 2b1cbbb96485
children b906d04998c8
files src/fileio.c
diffstat 1 files changed, 0 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/src/fileio.c	Thu Mar 28 18:39:26 1996 +0000
+++ b/src/fileio.c	Thu Mar 28 19:31:28 1996 +0000
@@ -2109,21 +2109,11 @@
 #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,