From dde0770def9750cdda6cb204bd1354c543a68e0c Mon Sep 17 00:00:00 2001 From: Adam Borowski Date: Fri, 6 Nov 2009 21:51:43 +0100 Subject: Put DJGPP's round() into a #define so other builds don't suffer. --- crawl-ref/source/AppHdr.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'crawl-ref/source/AppHdr.h') 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 + // 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 -- cgit v1.2.3-54-g00ecf