Diff
Not logged in

Differences From Artifact [c0add7cfd3]:

To Artifact [95bfb8f5d8]:


418
419
420
421
422
423
424

425
426
427
428
429

430
431
432
433
434
435
436
418
419
420
421
422
423
424
425
426
427
428
429

430
431
432
433
434
435
436
437







+




-
+







}

/*
** Set the mtime for a file.
*/
void file_set_mtime(const char *zFilename, i64 newMTime){
#if !defined(_WIN32)
  char *zMbcs;
  struct timeval tv[2];
  memset(tv, 0, sizeof(tv[0])*2);
  tv[0].tv_sec = newMTime;
  tv[1].tv_sec = newMTime;
  char *zMbcs = fossil_utf8_to_filename(zFilename);
  zMbcs = fossil_utf8_to_filename(zFilename);
  utimes(zMbcs, tv);
#else
  struct _utimbuf tb;
  wchar_t *zMbcs = fossil_utf8_to_filename(zFilename);
  tb.actime = newMTime;
  tb.modtime = newMTime;
  _wutime(zMbcs, &tb);