summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--HISTORY1
-rw-r--r--common.h3
2 files changed, 3 insertions, 1 deletions
diff --git a/HISTORY b/HISTORY
index 6a315b4..5682ca8 100644
--- a/HISTORY
+++ b/HISTORY
@@ -8,6 +8,7 @@ VDR Plugin 'text2skin' Revision History
- Added experimental RELAX NG schema for skin XML files.
- Set minimum value of bitmap cache size in menu to 1.
- Fix bitmap cache size initialization when built with gcc 4.6.
+- Warning and code cleanups.
2010-06-21: Version 1.3.1
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)