From: Gabor Greif Date: Tue, 17 Jul 2007 11:05:49 +0000 (+0000) Subject: cheap change to fix solaris compilation. I can make this a static inline if desired X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=79cc005a071deadfa0ac740fe47381537b0398cd;p=clang cheap change to fix solaris compilation. I can make this a static inline if desired git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@39970 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/Lex/LiteralSupport.cpp b/Lex/LiteralSupport.cpp index 8978c796a8..cbd7207a0a 100644 --- a/Lex/LiteralSupport.cpp +++ b/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