#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
char floatChars[256];
strncpy(floatChars, ThisTokBegin, ThisTokEnd-ThisTokBegin);
floatChars[ThisTokEnd-ThisTokBegin] = '\0';
- return strtof(floatChars, 0);
+ return (float)strtod(floatChars, 0);
}
void NumericLiteralParser::Diag(SourceLocation Loc, unsigned DiagID,