Fossil

Check-in [a3641b54]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Fix a C99-style variable declaration.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | makefile-error
Files: files | file ages | folders
SHA1:a3641b544118fcf647aa334ccfd48fd769a77f6c
User & Date: drh 2013-12-13 00:11:33
Context
2013-12-13
00:49
Fix the build on unix systems. check-in: 268d495d user: drh tags: trunk
00:11
Fix a C99-style variable declaration. Closed-Leaf check-in: a3641b54 user: drh tags: makefile-error
2013-12-12
23:34
Remove use of SQLITE_WIN32_NO_ANSI option everywhere except for Cygwin. Further cleanup. check-in: 1c37a905 user: mistachkin tags: makefile-error
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/file.c.

418
419
420
421
422
423
424

425
426
427
428
429
430
431
432
433
434
435
436
}

/*
** Set the mtime for a file.
*/
void file_set_mtime(const char *zFilename, i64 newMTime){
#if !defined(_WIN32)

  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);
  utimes(zMbcs, tv);
#else
  struct _utimbuf tb;
  wchar_t *zMbcs = fossil_utf8_to_filename(zFilename);
  tb.actime = newMTime;
  tb.modtime = newMTime;
  _wutime(zMbcs, &tb);







>




|







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;
  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);