diff liboctave/file-ops.cc @ 10170:1dffc8b2fca7

use rename module from gnulib
author John W. Eaton <jwe@octave.org>
date Thu, 21 Jan 2010 02:07:24 -0500
parents 06bd6e57f889
children 96ed9db3345c
line wrap: on
line diff
--- a/liboctave/file-ops.cc
+++ b/liboctave/file-ops.cc
@@ -260,17 +260,13 @@
 
   msg = std::string ();
 
-#if defined (HAVE_RENAME)
-  status = ::rename (from.c_str (), to.c_str ());
+  status = octave_rename (from.c_str (), to.c_str ());
 
   if (status < 0)
     {
       using namespace std;
       msg = ::strerror (errno);
     }
-#else
-  msg = NOT_SUPPORTED ("rename");
-#endif
 
   return status;
 }