From cb229578cf9c820d4001e1dd40faab330ae642a2 Mon Sep 17 00:00:00 2001 From: Moritz Warning Date: Mon, 24 Jan 2011 19:18:06 +0100 Subject: [PATCH] fix ldc2 compilation for Haiku; thanks to MrSunshine --- dmd2/root/port.c | 2 ++ dmd2/statement.c | 1 + 2 files changed, 3 insertions(+) diff --git a/dmd2/root/port.c b/dmd2/root/port.c index d4b20696..2bba4ef2 100644 --- a/dmd2/root/port.c +++ b/dmd2/root/port.c @@ -415,7 +415,9 @@ int Port::isFinite(double r) return ::finite(r); } +#if !defined __HAIKU__ #undef isinf +#endif int Port::isInfinity(double r) { #if __APPLE__ diff --git a/dmd2/statement.c b/dmd2/statement.c index f83b2b64..7503446c 100644 --- a/dmd2/statement.c +++ b/dmd2/statement.c @@ -29,6 +29,7 @@ #include "template.h" #include "attrib.h" +#include #if IN_LLVM // sizes based on those from tollvm.cpp:DtoMutexType() int os_critsecsize()