diff src/DLD-FUNCTIONS/urlwrite.cc @ 10197:4d433bd2d4dc

attempt to avoid trouble with gnulib #defines in a consistent way
author John W. Eaton <jwe@octave.org>
date Tue, 26 Jan 2010 00:45:04 -0500
parents 40dfc0c99116
children 2d47356a7a1a
line wrap: on
line diff
--- a/src/DLD-FUNCTIONS/urlwrite.cc	Sat Jan 23 06:58:30 2010 +0100
+++ b/src/DLD-FUNCTIONS/urlwrite.cc	Tue Jan 26 00:45:04 2010 -0500
@@ -660,21 +660,22 @@
 
 static curl_handles handles;
 
-static void 
+static void
 cleanup_urlwrite (std::string filename)
 {
-  file_ops::unlink (filename);
+  octave_unlink (filename);
 }
 
-static void 
+static void
 reset_path (const curl_handle curl)
 {
   curl.cwd ("..");
 }
 
-void delete_file (std::string file)
+static void
+delete_file (std::string file)
 {
-  file_ops::unlink (file);
+  octave_unlink (file);
 }
 #endif
 
@@ -1586,7 +1587,7 @@
   if (!fs || !fs.is_dir ())
     { 
       std::string msg;
-      int status = file_ops::mkdir (dir, 0777, msg);
+      int status = octave_mkdir (dir, 0777, msg);
 
       if (status < 0)
         error ("__ftp_mget__: can't create directory %s%s%s. %s",