platform/posix.c
changeset 240 052041af9001
parent 235 4ad12914f652
child 249 fed886543e40
equal deleted inserted replaced
239:f5a5cbef2ee8 240:052041af9001
   468     errno = 0;
   468     errno = 0;
   469     BAIL_IF_MACRO(remove(path) == -1, strerror(errno), 0);
   469     BAIL_IF_MACRO(remove(path) == -1, strerror(errno), 0);
   470     return(1);
   470     return(1);
   471 } /* __PHYSFS_platformDelete */
   471 } /* __PHYSFS_platformDelete */
   472 
   472 
       
   473 
       
   474 PHYSFS_sint64 __PHYSFS_platformGetLastModTime(const char *fname)
       
   475 {
       
   476     struct stat statbuf;
       
   477     BAIL_IF_MACRO(stat(fname, &statbuf) < 0, strerror(errno), -1);
       
   478     return statbuf.st_mtime;
       
   479 } /* __PHYSFS_platformGetLastModTime */
       
   480 
   473 /* end of posix.c ... */
   481 /* end of posix.c ... */
   474 
   482