diff options
author | Adam Borowski <kilobyte@angband.pl> | 2012-05-30 16:10:06 +0200 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2012-08-28 00:17:44 +0200 |
commit | 33e7c498ba8227245115231373b9a25430ca5eb2 (patch) | |
tree | caa36c0ef1ba76bbf6d2a3350b63b24242a61c5b /crawl-ref/source/state.cc | |
parent | cdeb0bb5e5473b9a929d612e1cffabb4f533646f (diff) | |
download | crawl-ref-33e7c498ba8227245115231373b9a25430ca5eb2.tar.gz crawl-ref-33e7c498ba8227245115231373b9a25430ca5eb2.zip |
Allow "%"PRI to build in C++11 mode.
This is a misdesign in the standard, the committee is debating whether it's
a defect or not, we'll know the result in ten years or so. In the meantime,
gcc-4.8 and clang(version?) added a fix so formerly legal code compiles (but
with a warning...). This fix is not yet in gcc-4.7 nor clang-3.1, and since
failing to build on compilers that happen in the wild is a bad idea, let's
kludge it around with spaces.
More info: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52538
Diffstat (limited to 'crawl-ref/source/state.cc')
-rw-r--r-- | crawl-ref/source/state.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/state.cc b/crawl-ref/source/state.cc index a9028dabf3..8a369f36a4 100644 --- a/crawl-ref/source/state.cc +++ b/crawl-ref/source/state.cc @@ -465,7 +465,7 @@ void game_state::dump() "arena_suspended: %d\n", seen_hups, map_stat_gen, type, arena_suspended); if (last_winch) - fprintf(stderr, "Last resize was %"PRId64" seconds ago.\n", + fprintf(stderr, "Last resize was %" PRId64" seconds ago.\n", (int64_t)(time(0) - last_winch)); fprintf(stderr, "\n"); |