1
0
mirror of https://github.com/cc65/cc65.git synced 2026-04-26 13:18:31 +00:00

Use the new FileStat function to get correct file modification times under

Windows.


git-svn-id: svn://svn.cc65.org/cc65/trunk@5633 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
uz
2012-04-01 17:01:05 +00:00
parent 65fe2ad0d3
commit f9729fd0cf
4 changed files with 11 additions and 14 deletions
+3 -3
View File
@@ -6,7 +6,7 @@
/* */
/* */
/* */
/* (C) 1998-2011, Ullrich von Bassewitz */
/* (C) 1998-2012, Ullrich von Bassewitz */
/* Roemerstrasse 52 */
/* D-70794 Filderstadt */
/* EMail: uz@cc65.org */
@@ -43,11 +43,11 @@
# include <utime.h>
#endif
#include <time.h>
#include <sys/stat.h>
/* common */
#include "cddefs.h"
#include "exprdefs.h"
#include "filestat.h"
#include "fname.h"
#include "symdefs.h"
#include "xmalloc.h"
@@ -254,7 +254,7 @@ void ObjAdd (const char* Name)
* if a file has changed in the debugger, we will ignore this problem
* here.
*/
if (stat (Name, &StatBuf) != 0) {
if (FileStat (Name, &StatBuf) != 0) {
Error ("Cannot stat object file `%s': %s", Name, strerror (errno));
}