summaryrefslogtreecommitdiff
path: root/common.h
diff options
context:
space:
mode:
authorVille Skyttä <ville.skytta@iki.fi>2011-05-28 14:54:20 +0300
committerVille Skyttä <ville.skytta@iki.fi>2011-05-28 14:59:52 +0300
commita8472a0be106776dd70a2174207a018187790fa7 (patch)
tree92e64fafd24b35d2a8ef238c7e44f54a672bc222 /common.h
parent99093d5ac8dc4307769c324c2dbaf18849ad8706 (diff)
downloadvdr-plugin-text2skin-a8472a0be106776dd70a2174207a018187790fa7.tar.gz
vdr-plugin-text2skin-a8472a0be106776dd70a2174207a018187790fa7.tar.bz2
Clean up debug/bench build format string warnings.
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)