summaryrefslogtreecommitdiff
path: root/common.h
diff options
context:
space:
mode:
Diffstat (limited to 'common.h')
-rw-r--r--common.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/common.h b/common.h
index 1438d3e..e21dc06 100644
--- a/common.h
+++ b/common.h
@@ -13,8 +13,9 @@
# else
# define Dprintf(x...)
# endif
+# define __STDC_FORMAT_MACROS
# define Dbench(x) uint64_t bench_##x = cTimeMs::Now()
-# define Ddiff(t,x) fprintf(stderr, "%s took %llu ms\n", t, cTimeMs::Now() - bench_##x)
+# define Ddiff(t,x) fprintf(stderr, "%s took %"PRIu64" ms\n", t, cTimeMs::Now() - bench_##x)
#else
# define Dprintf(x...)
# define Dbench(x)