From bea1390e6893dae734779a6adce503b96f137398 Mon Sep 17 00:00:00 2001 From: Gabor Greif Date: Tue, 17 Jul 2007 11:05:49 +0000 Subject: [PATCH] cheap change to fix solaris compilation. I can make this a static inline if desired llvm-svn: 39970 --- clang/Lex/LiteralSupport.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/clang/Lex/LiteralSupport.cpp b/clang/Lex/LiteralSupport.cpp index 8978c796a8cc..cbd7207a0a17 100644 --- a/clang/Lex/LiteralSupport.cpp +++ b/clang/Lex/LiteralSupport.cpp @@ -19,6 +19,12 @@ #include "clang/Basic/TargetInfo.h" #include "llvm/ADT/APInt.h" #include "llvm/ADT/StringExtras.h" +#include "llvm/Config/config.h" +#if HAVE_STRTOF +#else +# define strtof strtod +#endif + using namespace clang; /// HexDigitValue - Return the value of the specified hex digit, or -1 if it's