archivers/dir.c
changeset 137 66bddb94b6e0
parent 135 57ba3130b1e7
child 138 3af38f5bd54d
--- a/archivers/dir.c	Mon Mar 25 05:01:29 2002 +0000
+++ b/archivers/dir.c	Mon Mar 25 05:02:12 2002 +0000
@@ -299,13 +299,7 @@
     int retval;
 
     BAIL_IF_MACRO(f == NULL, NULL, 0);
-
-    /* !!! FIXME: Abstract in platform drivers. */
-    errno = 0;
-    retval = (remove(f) == 0);
-    if (!retval)
-        __PHYSFS_setError(strerror(errno));
-
+    retval = __PHYSFS_platformDelete(f);
     free(f);
     return(retval);
 } /* DIR_remove */