summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/AppHdr.h
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2009-11-06 21:51:43 +0100
committerAdam Borowski <kilobyte@angband.pl>2009-11-06 21:56:19 +0100
commitdde0770def9750cdda6cb204bd1354c543a68e0c (patch)
treed03c79d3ad527e656873d2faf9a68388ae6a3982 /crawl-ref/source/AppHdr.h
parent8e818e928f85a06f7f6c91c2baedab97a32e0f12 (diff)
downloadcrawl-ref-dde0770def9750cdda6cb204bd1354c543a68e0c.tar.gz
crawl-ref-dde0770def9750cdda6cb204bd1354c543a68e0c.zip
Put DJGPP's round() into a #define so other builds don't suffer.
Diffstat (limited to 'crawl-ref/source/AppHdr.h')
-rw-r--r--crawl-ref/source/AppHdr.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/crawl-ref/source/AppHdr.h b/crawl-ref/source/AppHdr.h
index fcaa373b09..a911f883c8 100644
--- a/crawl-ref/source/AppHdr.h
+++ b/crawl-ref/source/AppHdr.h
@@ -199,6 +199,9 @@
#include <dos.h>
+ // It's sad we don't use autoconf...
+ #define round(x) floor((x)+0.5)
+
// Use Perl-compatible regular expressions. libpcre must be available and
// linked in. This is optional.
#ifndef REGEX_PCRE