diff options
Diffstat (limited to 'lib/Transforms')
-rw-r--r-- | lib/Transforms/Utils/Local.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/Transforms/Utils/Local.cpp b/lib/Transforms/Utils/Local.cpp index edb9742655..e9ec6db069 100644 --- a/lib/Transforms/Utils/Local.cpp +++ b/lib/Transforms/Utils/Local.cpp @@ -20,6 +20,14 @@ #include <cmath> using namespace llvm; +#if defined(__POWERPC__) && defined(__APPLE_CC__) +// FIXME: Currently it seems that isnan didn't make its way into the Apple +// C++ headers, although it IS in the C headers (which confuses autoconf +// in a big way). This is a quick fix to get things compiling, until one of +// us has time to write a more complicated autoconf test. +extern "C" int isnan (double d); +#endif + //===----------------------------------------------------------------------===// // Local constant propagation... // |