fix ldc2 compilation for Haiku; thanks to MrSunshine

This commit is contained in:
Moritz Warning
2011-01-24 19:18:06 +01:00
parent a1166db25b
commit cb229578cf
2 changed files with 3 additions and 0 deletions

View File

@@ -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__

View File

@@ -29,6 +29,7 @@
#include "template.h"
#include "attrib.h"
#include <pthread.h>
#if IN_LLVM
// sizes based on those from tollvm.cpp:DtoMutexType()
int os_critsecsize()