]> git.ipfire.org Git - thirdparty/make.git/commitdiff
Fix printing time stamps on MS-Windows
authorEli Zaretskii <eliz@gnu.org>
Sat, 28 May 2016 09:53:02 +0000 (12:53 +0300)
committerEli Zaretskii <eliz@gnu.org>
Sat, 28 May 2016 09:53:02 +0000 (12:53 +0300)
* dir.c (print_dir_data_base) [WINDOWS32]: Use %I64u format for
printing unsigned 64-bit data types, as %ull is not universally
supported.

dir.c

diff --git a/dir.c b/dir.c
index 63c82a03f51da742642e7dbd5b411a7881a9058f..f34bbf58e5c875df28a81933ec25269a72aacfb3 100644 (file)
--- a/dir.c
+++ b/dir.c
@@ -1082,7 +1082,7 @@ print_dir_data_base (void)
           else if (dir->contents->dirfiles.ht_vec == 0)
             {
 #ifdef WINDOWS32
-              printf (_("# %s (key %s, mtime %ull): could not be opened.\n"),
+              printf (_("# %s (key %s, mtime %I64u): could not be opened.\n"),
                       dir->name, dir->contents->path_key,
                       (unsigned long long)dir->contents->mtime);
 #else  /* WINDOWS32 */
@@ -1119,7 +1119,7 @@ print_dir_data_base (void)
                     }
                 }
 #ifdef WINDOWS32
-              printf (_("# %s (key %s, mtime %ull): "),
+              printf (_("# %s (key %s, mtime %I64u): "),
                       dir->name, dir->contents->path_key,
                       (unsigned long long)dir->contents->mtime);
 #else  /* WINDOWS32 */